Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Using the contents of a cell to act as a range in VLOOKUP

$
0
0

I AM USING GOOGLE SHEETS, NOT SURE IF THIS IS THE BEST PLACE TO POST BUT FOR CLARIFICATION!

Hi there, I am attempting to index the contents of a cell and use that as the range in my VLOOKUP formula.

The formula is

=VLOOKUP(B4,'B2'!1:130,2,FALSE)

Explaining the formula...The search key is the Employee Name which comes from a dropdown in B4.The Range is B2, which is a dropdown for my four sheet names (Test1, Test2, Test3, Test4)The idea is to index column 2 in the sheet value of B2 (test1,2,3 or 4) and return the result of Sam (employee name).

Every time I try, it returns 'Unresolved sheet name B2.

I have tried using INDEX(B4) in replacement of B4 but still no luck. Attached is a photo for reference.

Photo Reference


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>