+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

  1. #1
    RICKY
    Guest

    VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

    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

  2. #2
    Niek Otten
    Guest

    Re: VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

    Hi Ricky,

    Look in HELP for the INDIRECT() function

    --
    Kind regards,

    Niek Otten

    "RICKY" <[email protected]> wrote in message news:[email protected]...
    >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




  3. #3
    Biff
    Guest

    Re: VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

    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

    "RICKY" <[email protected]> wrote in message
    news:[email protected]...
    >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




  4. #4
    Biff
    Guest

    Re: VLOOKUP(lookup_value, ___ ,col_index_num,range_lookup)

    Just to clarify......

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


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

    Biff

    "Biff" <[email protected]> wrote in message
    news:[email protected]...
    > 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
    >
    > "RICKY" <[email protected]> wrote in message
    > news:[email protected]...
    >>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

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1