I have a table like this:
each of the Y1...Y6 columns contains either an N/A or a numeric value. Only one column will contain a number for each row - the others will all be N/A. The Type column is supposed to return which Y column has the numeric value. So in the example, row 1 has a value in column Y6, so the Type is 6.
Is there a way to calculate the Type column without using a huge nested-if expression?
Thanks,
JohnnyGeo
Code:
Row Y1 Y2 ... Y6 Type
1 N/A N/A 1 6
2 N/A 1 N/A 2
3 5 N/A N/A 1
each of the Y1...Y6 columns contains either an N/A or a numeric value. Only one column will contain a number for each row - the others will all be N/A. The Type column is supposed to return which Y column has the numeric value. So in the example, row 1 has a value in column Y6, so the Type is 6.
Is there a way to calculate the Type column without using a huge nested-if expression?
Thanks,
JohnnyGeo