OFFSET error

chrono2483

Board Regular
Joined
Aug 23, 2014
Messages
164
Office Version
  1. 2016
I keep getting a #VALUE! or #REF! error with my offset formula. I've followed the logic and it should point to the desired cell. It is suppose to find the name in column A, go down 5 rows and return 2 columns/cells of data.

=OFFSET(INDEX($A$1:$A$500,MATCH($I3,$A$1:$A$500,0)),5,,,2)


can anyone tell what I am doing wrong?


 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
The offset is returning a 2 cell range (columns A&B 5 rows below where the match was found)..
So you're trying to make 1 cell display the values of 2 cells. = #Value! error.

Offset CAN indeed return a multicell range, but you have to actually DO something with that range, like SUM it..
=SUM(OFFSET(INDEX($A$1:$A$500,MATCH($I3,$A$1:$A$500,0)),5,,,2))
 
Upvote 0
Index the column you want the result from
=OFFSET(INDEX($C$1:$C$500,MATCH($I3,$A$1:$A$500,0)),5,,,1)
 
Upvote 0
Looks like I understood the intention differently than gaz_chops did...

If your intention is to return the value from the cell 2 columns over (C is 2 columns over from A), and 5 rows down from the match..

Try like this to avoid the Volatile Offset function

=INDEX($C$6:$C$505,MATCH($I3,$A$1:$A$500,0))

Notice the 5 row offset from column A and C..
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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