How can I tell which column a value occurs in?

Berrett

Board Regular
Joined
Aug 6, 2004
Messages
249
I have columns for Ethnicity in this student data but the values are split across five columns (see attached). I need to fill in the Purple column (Column N) with a single Ethnicity value. So Row 2 would be "White", Row 12 would be "Black". I have been trying for 30 minutes and I just can't find a way to make this work.

Any thoughts?
 

Attachments

  • Screen Shot 2020-12-17 at 1.02.45 PM.png
    Screen Shot 2020-12-17 at 1.02.45 PM.png
    38 KB · Views: 8

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about
Excel Formula:
=INDEX($I$1:$M$1,MATCH("Yes",I2:M2,0))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top