Kwnstantinos_M
New Member
- Joined
- Jun 12, 2018
- Messages
- 24
Hello,
I have 4 columns of data, like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]NE[/TD]
[TD]NW[/TD]
[TD]SE[/TD]
[TD]SW[/TD]
[TD]Prevailing[/TD]
[/TR]
[TR]
[TD]45[/TD]
[TD]30[/TD]
[TD]22[/TD]
[TD]31[/TD]
[TD]NE[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]59[/TD]
[TD]51[/TD]
[TD]42[/TD]
[TD]NW[/TD]
[/TR]
[TR]
[TD]71[/TD]
[TD]44[/TD]
[TD]21[/TD]
[TD]18[/TD]
[TD]NE[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD]22[/TD]
[TD]56[/TD]
[TD]SW[/TD]
[/TR]
</tbody>[/TABLE]
The first 4 columns contain numbers of wind data. In the fifth column I want to write a command, by which the name of the prevailing wind (namely the name of the column) will be returned as a result. For instance, in the 2nd row NE has the highest number, therefore NE is written in the fifth column etc. Do you have any ideas?
I have 4 columns of data, like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]NE[/TD]
[TD]NW[/TD]
[TD]SE[/TD]
[TD]SW[/TD]
[TD]Prevailing[/TD]
[/TR]
[TR]
[TD]45[/TD]
[TD]30[/TD]
[TD]22[/TD]
[TD]31[/TD]
[TD]NE[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]59[/TD]
[TD]51[/TD]
[TD]42[/TD]
[TD]NW[/TD]
[/TR]
[TR]
[TD]71[/TD]
[TD]44[/TD]
[TD]21[/TD]
[TD]18[/TD]
[TD]NE[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]5[/TD]
[TD]22[/TD]
[TD]56[/TD]
[TD]SW[/TD]
[/TR]
</tbody>[/TABLE]
The first 4 columns contain numbers of wind data. In the fifth column I want to write a command, by which the name of the prevailing wind (namely the name of the column) will be returned as a result. For instance, in the 2nd row NE has the highest number, therefore NE is written in the fifth column etc. Do you have any ideas?