ISNUMBER with INDEX MATCH?

giah98

New Member
Joined
Nov 28, 2018
Messages
4
I am trying to figure out how to get the right formula to output the column header i need. I tried isnumber with index match and i'm getting n/a or value errors.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]US1[/TD]
[TD]US2[/TD]
[TD]US3[/TD]
[TD]US4[/TD]
[TD]US5[/TD]
[TD]US6[/TD]
[TD]US7[/TD]
[TD]US8[/TD]
[TD]US9[/TD]
[TD]US10[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]456[/TD]
[TD]SERV678[/TD]
[TD][/TD]
[TD]542[/TD]
[TD]369[/TD]
[TD][/TD]
[TD]87[/TD]
[TD]654879[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]

I need to find the cell the has "SERV" and then output the column that it is located. For instance here would b e US3.

Thanks in advanced!!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi & welcome to MrExcel.

maybe
=INDEX(A1:J1,MATCH("SERV*",A2:J2,0))
 
Upvote 0
Thanks for the quick response!
That just give me a 0 if it's found a "SERV". but I need it to find "SERV" then output the column it's in.
 
Upvote 0
This is what I get


Excel 2013/2016
ABCDEFGHIJ
1US1US2US3US4US5US6US7US8US9US10
2123456SERV6785423698765487914
3
4US3
Sheet3
Cell Formulas
RangeFormula
A4=INDEX(A1:J1,MATCH("SERV*",A2:J2,0))
 
Upvote 0
That works! Thank you! Also I have 2500 lines an it won't auto fill since it references the previous row. Anyway to go about this?
 
Upvote 0
In that case use
=INDEX(A$1:J$1,MATCH("SERV*",A2:J2,0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

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