Index Match

StanSz

Board Regular
Joined
Sep 18, 2004
Messages
199
I'm having trouble in getting the Index & Match combination to give me the results I want, obviously indicating that my formulas are incorrect.

When I use the formula =MATCH(A12,A11:A1000,0) to search for the position of the value in A12 within the range of A11:A1000, I get the correct answer of 2, since the A12 value is right at the top of the range.

When I use the formula =INDEX(A11:AB1000,2,25) to go to the second row down and 25 columns to the right in the range A11:AB1000 I get the desired answer of 1620.

However, when I try to combine the Match and Index arguments in the following manner =INDEX(A11:AB1000,2,25,MATCH(A12,A11:A1000,0)) I get a #REF error, when what I want to get is the answer 1620.

What I am doing incorrectly ?? I'm trying to use a value found in the A column in one location, match it in another range of varying values and return the desired offset value

Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
StanSz, Good evening.

Have you tried to use:

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) ,25)

Please, tell us if it worked for you.

I hope it helps.
 
Upvote 0
Dear Marcillo,

Yes, it does work, Thank you.

My question though is I don't see where the formula says to go to the 2nd row, and then 25 columns over, but somehow it does. If I wanted to go 3 rows down, or 7 rows, how would I adjust the formula ??

Stan
StanSz, Good evening.

Have you tried to use:

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) ,25)

Please, tell us if it worked for you.

I hope it helps.
 
Upvote 0
Stan,

I colored BLUE the part that you automated the line number at the formula.

Remember the syntax of the INDEX function:

=INDEX(Array, Line Number, Column Number)

"...If I wanted to go 3 rows down, or 7 rows, how would I adjust the formula ??..."
Well, either you use the automatic line number parameter (the same as your formula at blue part is doing) or you enter the line number manually instead of the formula.

Was it possible to understand now how it works?

Please, any questions you can send message.
This is the perfect place to ask questions.

I hope it helps.
 
Upvote 0
The formula that works (thanks, again) is giving me the value 25 columns over in the same row number as the match.

But, if I wanted to have a Line Number OFFSET from the Match row ?? as in my initial Index formula of =INDEX(A11:$AB1000,2,25) -- which is 2 rows down within the range.

I'm wanting to go 2, or 3, or 7 row numbers from the Match row. Can I not say, "find the match row, and then give me the value 2 rows down from that, and 25 columns over" ??




Stan,

I colored BLUE the part that you automated the line number at the formula.

Remember the syntax of the INDEX function:

=INDEX(Array, Line Number, Column Number)

"...If I wanted to go 3 rows down, or 7 rows, how would I adjust the formula ??..."
Well, either you use the automatic line number parameter (the same as your formula at blue part is doing) or you enter the line number manually instead of the formula.

Was it possible to understand now how it works?

Please, any questions you can send message.
This is the perfect place to ask questions.

I hope it helps.
 
Upvote 0
Stan, Good evening.

To solve this question you need to change the result of your MATCH function.

Two ways:


a) Directly at the formula:

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) + 2 ,25)


b) Using another cell:

D4 --> 2

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) + D4 ,25)

Please, is that what you're looking for?

I hope it helps.
 
Upvote 0
This is exactly what I'm looking for -- once again Thank you. I didn't know where to put the row offset value.

Greetings from Santiago, Chile,

Stan


Stan, Good evening.

To solve this question you need to change the result of your MATCH function.

Two ways:


a) Directly at the formula:

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) + 2 ,25)


b) Using another cell:

D4 --> 2

=INDEX(A11:AB1000, MATCH(A12,A11:A1000,0) + D4 ,25)

Please, is that what you're looking for?

I hope it helps.
 
Upvote 0
Stan,

Glad to have helped you.

Greetings from Belo Horizonte, Brazil.

Have a nice week!
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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