+ Reply to Thread
Results 1 to 7 of 7

Using choose and vlookup to find a value

  1. #1
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Using choose and vlookup to find a value

    Hi,
    In the sample file my question is explained.
    Basically I am trying to use vlookup-choose-array to look up two columns.
    Any help will help.
    Attached Files Attached Files
    Please * if you like the answer

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using choose and vlookup to find a value

    Hello
    Maybe using SUMPRODUCT to find the column number, as follows:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    *Note the two commas (red) as there is no range for 2.

    Hope this helps.
    DBY

  3. #3
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Using choose and vlookup to find a value

    @DBY - thanks a lot. awesome.

    More generally - DBY's solution tansforms - virtually speaking, using choose - a matrix (2*2) into a 2-column range, something vlookup can handle easily.

  4. #4
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Using choose and vlookup to find a value

    @DBY - it's a bit complex, please explain me the parameters of the choose function in the context of your formula of course: index and values. Why hard coding the headers and why value2 is missing?
    Last edited by GIS2013; 03-24-2016 at 12:45 PM. Reason: typo

  5. #5
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Using choose and vlookup to find a value

    Understood.

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Using choose and vlookup to find a value

    The CHOOSE function accepts numbers between 1 and 254 as an argument. The Values that you define, in this case cell ranges, are then chosen depending on the number 1 - 254. As the second VLOOKUP range was in column 3, the letters C and D the SUMPRODUCT function returns 3, so we want the 3rd. Value not the second which has been left blank.

    The Column headers just return the number of the column matching the letters in cells A5:A8. I made the reference absolute out of habit but here it doesn't really matter as long as the numbers correspond with the CHOOSE Index number. You could just put {1,2,3,4}, rather than use the COLUMN function.

    Not sure if my explanation is clear but I hope it helps.

    DBY

  7. #7
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Using choose and vlookup to find a value

    Yes it's very clear. The nested COLUMN confused me a little bit but it's really ok now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Choose + vlookup + if(iserror)
    By meckel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2014, 04:48 PM
  2. [SOLVED] Vlookup but with 3 possible col_index_num to choose
    By aghlab in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-15-2013, 04:44 AM
  3. [SOLVED] Vlookup & Choose
    By timbo1957 in forum Excel General
    Replies: 8
    Last Post: 03-22-2012, 10:21 AM
  4. VLOOKUP choose between rows
    By Drivium in forum Excel General
    Replies: 5
    Last Post: 11-13-2011, 06:57 PM
  5. Excel 2007 : When should I choose IF, AND, VLOOKUP?
    By Garethrowe in forum Excel General
    Replies: 1
    Last Post: 02-01-2011, 08:11 AM
  6. VLookup or Choose Function?
    By Geforce in forum Excel General
    Replies: 7
    Last Post: 04-28-2008, 12:13 PM
  7. [SOLVED] Vlookup or choose or?
    By Dean in forum Excel General
    Replies: 1
    Last Post: 01-12-2006, 02:25 PM

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