Share via

Vlookup table array changing

Anonymous
2015-07-23T21:02:39+00:00

I have a working vlookup that is changing automatically and I need to stop it.

The formula is =vlookup(C3,$I:$J,2,0).  It works on the first run. On the second run I insert new data to I thru J which pushes the first run data out to K thru L.  The formula automatically changes to =vlookup(C3,$K:$L,2,0) 

How do I get the formula to stay at I thru J?

Thanks!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2015-07-23T21:07:37+00:00

You can use the INDIRECT function for this purpose:

=VLOOKUP(C3,INDIRECT("I:J"),2,FALSE)

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Vijay A. Verma 104.9K Reputation points Volunteer Moderator
2015-07-24T08:59:18+00:00

Another alternative is

=VLOOKUP(C3,OFFSET($A:$B,,8),2,0)

But if volatility of OFFSET and INDIRECT is a concern in your case, you can use following formula which is non-volatile -

=VLOOKUP(C3,INDEX($1:$1048576,,9):INDEX($1:$1048576,,10),2,0)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful