Identifying Column for Match Function

croeder

New Member
Joined
Jun 9, 2011
Messages
10
How do I tell a match function to look in a certain row for data?

For example

1221 23 89
2213 81 22
9901 77 91

I want to be able to tell match to search the row with 2213 in it so I can determine which position or column 22 is in.

Thank you for the help!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
How do I tell a match function to look in a certain row for data?

For example

1221 23 89
2213 81 22
9901 77 91

I want to be able to tell match to search the row with 2213 in it so I can determine which position or column 22 is in.

Thank you for the help!

Let A2:D4 house the sample.

E2: 2213

F2: 22

G2:

=MATCH(F2,INDEX($A$2:$C$4,MATCH(E2,$A$2:$A$4,0),0),0)

This should return 3, a position value with respect to A2:D4.
 
Upvote 0
How do I tell a match function to look in a certain row for data?

For example

1221 23 89
2213 81 22
9901 77 91

I want to be able to tell match to search the row with 2213 in it so I can determine which position or column 22 is in.

Thank you for the help!
What result do you expect, 2 or 3?

This will return 2.

Book1
ABCDE
212212389_2213
322138122_22
499017791_2
Sheet1

Formula entered in E4:

=MATCH(E3,INDEX(B2:C4,MATCH(E2,A2:A4,0),0),0)
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,135
Members
452,890
Latest member
Nikhil Ramesh

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