I have been working on this formula for a while and cannot find a solution without having a super long and complex nested if statement. For the below table, I want to be able to choose a name (Bernard for example) and have a formula tell me the column name of the first cell with a value greater than 0 (Orange). I then want to have a formula next to that one that pulls the second value, then third, then forth (if applicable). Can anyone think of what formula will accomplish this (ideally not a ctrl-shift-enter)
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD]green[/TD]
[/TR]
[TR]
[TD]andy[/TD]
[TD]10[/TD]
[TD]20[/TD]
[TD]50[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]bernard[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]50[/TD]
[TD][/TD]
[TD][/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Daphne[/TD]
[TD][/TD]
[TD][/TD]
[TD]100[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The answer should look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]first[/TD]
[TD]second[/TD]
[TD]third[/TD]
[TD]fourth[/TD]
[/TR]
[TR]
[TD]andy[/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD]green[/TD]
[/TR]
[TR]
[TD]bernard[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]carl[/TD]
[TD]red[/TD]
[TD]green[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]daphne[/TD]
[TD]yellow[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank You (I'm almost certain Index is needed()
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD]green[/TD]
[/TR]
[TR]
[TD]andy[/TD]
[TD]10[/TD]
[TD]20[/TD]
[TD]50[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]bernard[/TD]
[TD][/TD]
[TD]30[/TD]
[TD]40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Carl[/TD]
[TD]50[/TD]
[TD][/TD]
[TD][/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Daphne[/TD]
[TD][/TD]
[TD][/TD]
[TD]100[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The answer should look like this
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]first[/TD]
[TD]second[/TD]
[TD]third[/TD]
[TD]fourth[/TD]
[/TR]
[TR]
[TD]andy[/TD]
[TD]red[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD]green[/TD]
[/TR]
[TR]
[TD]bernard[/TD]
[TD]orange[/TD]
[TD]yellow[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]carl[/TD]
[TD]red[/TD]
[TD]green[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]daphne[/TD]
[TD]yellow[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank You (I'm almost certain Index is needed()