+ Reply to Thread
Results 1 to 6 of 6

returing data from a different table

  1. #1
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    305

    returing data from a different table

    Hi all,

    thank you for your help in advance.


    I trying to get information on tab WHP for different sites from WHP data.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,021

    Re: returing data from a different table

    In E7 of WHP, use the formula

    =VLOOKUP($C7,'WHP DATA'!$B:$E,COLUMN(B$1),FALSE)

    and copy to the other five cells.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,159

    Re: returing data from a different table

    Another option fr 365
    In E7 copied down only
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    305

    Re: returing data from a different table

    This worked, but I would like to understand how it works. I understand how Column(b$1) works as that cell is blank.

  5. #5
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    305

    Re: returing data from a different table

    Quote Originally Posted by Bernie Deitrick View Post
    In E7 of WHP, use the formula

    =VLOOKUP($C7,'WHP DATA'!$B:$E,COLUMN(B$1),FALSE)

    and copy to the other five cells.
    ------
    This worked, but I would like to understand how it works. I do not understand how Column(b$1) works as that cell is blank.
    Last edited by DEEARO; 05-07-2021 at 04:29 AM.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,021

    Re: returing data from a different table

    My use of COLUMN() is just a shortcut that makes using one formula possible.

    COLUMN just returns a number. This formula

    =VLOOKUP($C7,'WHP DATA'!$B:$E,COLUMN(B$1),FALSE)

    is the same as

    =VLOOKUP($C7,'WHP DATA'!$B:$E,2,FALSE)

    When copied to the right, it becomes

    =VLOOKUP($C7,'WHP DATA'!$B:$E,COLUMN(C$1),FALSE)

    etc., which is the same as

    =VLOOKUP($C7,'WHP DATA'!$B:$E,3,FALSE)

    I could have told you to use this in the first cell

    =VLOOKUP($C7,'WHP DATA'!$B:$E,2,FALSE)

    but then, when copied to the right, you would have had to edit the 2 manually.

+ 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. Storing an Array in module and returing value
    By crossfitciaran in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 11-12-2019, 10:28 PM
  2. Box in userform leading to a Vlookup but returing N/A
    By EvanJones2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2018, 02:20 AM
  3. [SOLVED] INDEX MATCH Not returing 0 (zero).
    By KML1976 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-18-2016, 09:10 AM
  4. [SOLVED] Looking ar three cells in order and returing value of first cell above zero
    By BeanCount87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2015, 10:51 AM
  5. VLOOKUP returing #N/A instead of 0 (zero)
    By rz6657 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2013, 05:49 PM
  6. Excel 2007 : Trouble Returing Correct Date
    By 00Formula00 in forum Excel General
    Replies: 1
    Last Post: 07-10-2012, 05:28 PM
  7. Index & Match returing the first name every time
    By kcjaries78 in forum Excel General
    Replies: 3
    Last Post: 04-25-2009, 12:08 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