+ Reply to Thread
Results 1 to 7 of 7

Vlookup Base table array on cell value

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    Brooklyn, New York
    MS-Off Ver
    Excel 365
    Posts
    3

    Vlookup Base table array on cell value

    I have an excel sheet with lots of rows separated in different ranges, i want to lookup "B" and return the value of the cell to its left, the table array should be based on a range that is defind in cells in column A.

    see example
    Capture.JPG

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Vlookup Base table array on cell value

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Vlookup Base table array on cell value

    if the "Range" is real case,

    it need two helper column,

    One to identify the range,
    in column D,
    in first row, put 1
    second row onward, put this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Another is to create unique ID
    put this formula in E and drag down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then create a index and match function to get the result.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-16-2019
    Location
    Brooklyn, New York
    MS-Off Ver
    Excel 365
    Posts
    3

    Re: Vlookup Base table array on cell value

    Thanks for the reply.
    As you advised I attached a sample worksheet.
    The desired results are in cells M6:P7.
    I color coded the desired results and the table where the values are to show only where the value for the specific result shuold be returned from.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Vlookup Base table array on cell value

    In M6, the below uses a dynamic named range:
    Please Login or Register  to view this content.
    If you don't want the named range, then replace it with: $A$29:$J$84
    ----------------
    the named range is:
    Please Login or Register  to view this content.
    Sorry, I posted the wrong workbook...
    Last edited by protonLeah; 04-18-2019 at 04:17 PM. Reason: posted wrong workbook :(
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    04-16-2019
    Location
    Brooklyn, New York
    MS-Off Ver
    Excel 365
    Posts
    3

    Re: Vlookup Base table array on cell value

    Thanks for the reply, It works for the first result I need, however when I copied the formula to the next cell and changed the MATCH lookup value to "Returns Date" the value returned was the same as the "Invoice" return, I also tried changing the number in the SMALL function to 2, but then it returned an error.
    See attached.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Vlookup Base table array on cell value

    Here's the correct workbook. It's slow (using whole columns) I don' t have time to fix that part:
    Attached Files Attached Files
    Last edited by protonLeah; 04-18-2019 at 04:22 PM.

+ 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. How to control table array in vlookup by using a cell
    By Thonkhan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2014, 04:43 AM
  2. [SOLVED] Using Cell Value for VLOOKUP Table Array
    By kyleflanigan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2014, 09:26 AM
  3. vlookup table array until the very last cell with value
    By cgaisano in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2013, 02:39 AM
  4. Excel 2007 : Vlookup - Table Array as a cell reference?
    By benoj2005 in forum Excel General
    Replies: 2
    Last Post: 03-21-2012, 12:02 PM
  5. Replies: 2
    Last Post: 02-23-2011, 07:24 AM
  6. Reference a Cell for Tab name in VLOOKUP Table Array
    By gabem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2009, 02:15 PM
  7. VLOOKUP where a cell specifies the table array
    By Hall in forum Excel General
    Replies: 2
    Last Post: 02-23-2006, 09:35 AM

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