return value in header row

neilp

Well-known Member
Joined
Jul 5, 2004
Messages
529
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a table of data (D4:AI29). Row 4 is a header row that contains the numbers 1 - 32.
In each row below the header, the letter "S" appears. I'm looking for a formula I can place in AK5 that will tell me the number in the header row that corresponds to where the S is in that row. I would then like to copy the formula down AK so it works for all rows.

Does that make any sense. I was sensing Index - Match might be the way forward, but cant get it to output anything meaningful

Thanks in advance

Neil
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
a cut-down version of your data


Book1
CDEFGHIJ
3
4123456
5S5
6S2
7
8S4
9
10S3
11
12S6
13
14
15
Sheet1
Cell Formulas
RangeFormula
J5=IFERROR(INDEX($D$4:$I$4,MATCH("S",D5:I5,0)),"")
 
Upvote 0
Alan

That's perfect - thanks so much

Neil
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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