VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I built 2 named range for search, for example,
"ABC" = A1: D4
"DEF" = A10: F10:

and let's say, if Z1 = 1 then A100 = "ABC" and
if Z1 = 2 then A100 = "DEF"

how can have VLOOKUP to look for range ABC or range DEF based on contains in
A100?

Ricky
 
Hi!

Try this:

=VLOOKUP(lookup_value,CHOOSE(Z1,ABC,DEF),column_index_num,0)

Since your ranges have different widths how do you intend to determine what
the column_index_number is? Or, is it constant?

Biff
 
Just to clarify......

If you use the formula I suggested you don't need to reference A100 in the
lookup.

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top