+ Reply to Thread
Results 1 to 8 of 8

Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet 1

  1. #1
    Registered User
    Join Date
    01-31-2018
    Location
    Bathurst, NB
    MS-Off Ver
    2010
    Posts
    37

    Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet 1

    Hi there,

    Thanks in advance for your help. I'm a noob, I know the very basic but not familiar with the more advanced stuff. Probably easy for some of you but eh, if it is, all the better.

    I'm trying to build a tracker and what I need it to do seems possible, I just don't know how. I depicted an example below as I'm not sure my description and my question will be very clear. Basically, I have one sheet of 4000 total orders in column A, with some information in adjacent columns (B,C,D). I have a Completed sheet, with orders in column A and completion information in column B, C and D. I would like to put in a lookup function that would pull the information from rows of the Completed sheet that match orders of the Order sheet and put the data of column B, C and D of the Completed sheet in the column E, F and G of the Order sheet, in the corresponding row.

    See attached picture for a visual of what I'm looking to accomplish.

    thanks again, hoping a kind, smart and generous souls out there can help me
    Attached Images Attached Images
    Last edited by Xsample; 01-31-2018 at 03:35 PM. Reason: added picture

  2. #2
    Registered User
    Join Date
    01-31-2018
    Location
    Bathurst, NB
    MS-Off Ver
    2010
    Posts
    37

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    Sorry, I attached an image to my OP after realizing nothing lined up in the post.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    It looks to me like you could simply use the completed sheet as a lookup table, and use a lookup function in the pending sheet to return the appropriate values from the completed sheet. The help file for the VLOOKUP() function is a good starting place: https://support.office.com/en-us/art...8-93a18ad188a1

    Assuming you follow the examples and put FALSE in the 4th argument of the VLOOKUP() function, the orders that are not present in the completed sheet will return N/A errors. You can nest the VLOOKUP() function inside of the IFERROR() function (https://support.office.com/en-us/art...6-63f3e417f611 ) and return empty string or something similar for those order numbers that are not found in the completed sheet.

    Are you able to piece that together in your spreadsheet?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    01-31-2018
    Location
    Bathurst, NB
    MS-Off Ver
    2010
    Posts
    37

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    Here's a sample...

    Basically, I would like sheet 1 to be updated with the info in sheet 2. The result would be as shown in sheet 3 and any info added to sheet 2 would update automatically in sheet 1.

    Thanks again!
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    In F2

    =IF($A2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,3,0),""))

    in G2

    =IF($A2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,4,0),""))

    copy both as far as required

  7. #7
    Registered User
    Join Date
    01-31-2018
    Location
    Bathurst, NB
    MS-Off Ver
    2010
    Posts
    37

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    Thank you very much.

    If you care to enlighten me, can you confirm my understanding...

    I also need the return from column B of sheet2 in column E, so in E2, I put:


    =IF($A2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,2,0),""))

    Is the number 2 what defines the column to pull data from? (2=B, 3=C, 4=D, etc...)

    And am I understanding that the first $A2 refers to the source list in sheet1 and the second $A2 refers to the result list in sheet2, therefore if my order numbers would be in the column B of sheet 1 instead, I would have =IF($B2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,2,0),""))
    and if the order numbers are in column C of sheet 2, the formula would have to be: =IF($B2="","",IFERROR(VLOOKUP($C2,Sheet2!$A$2:$D$1000,2,0),""))

    I'm not too sure what these values refer to: $A$2:$D$1000

    Thanks again

  8. #8
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Lookup value from sheet1 in sheet2 to pull corresponding data and bring them to sheet

    Quote Originally Posted by Xsample View Post
    Thank you very much.

    If you care to enlighten me, can you confirm my understanding...

    I also need the return from column B of sheet2 in column E, so in E2, I put:


    =IF($A2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,2,0),""))

    Is the number 2 what defines the column to pull data from? (2=B, 3=C, 4=D, etc...)

    And am I understanding that the first $A2 refers to the source list in sheet1 and the second $A2 refers to the result list in sheet2, therefore if my order numbers would be in the column B of sheet 1 instead, I would have =IF($B2="","",IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$1000,2,0),""))
    and if the order numbers are in column C of sheet 2, the formula would have to be: =IF($B2="","",IFERROR(VLOOKUP($C2,Sheet2!$A$2:$D$1000,2,0),""))

    I'm not too sure what these values refer to: $A$2:$D$1000

    Thanks again
    Both $A2 refer to your sheet 1. Sheet2!$A$2:$D$1000 refer to the range that you want to lookup the data for that is equal to Sheet 1 $A2. As for the 2 = B 3 = C 4 = D, depends on the range you set. Since it is starting at Sheet 2 range A:D, A will be 1 and thereafter. if you set it to Sheet 2 range B:D, B will be 1.

+ 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. [SOLVED] VB Code to pull data from Sheet1 and paste in Sheet2
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-25-2017, 11:34 AM
  2. Pull Data From Sheet2 Into Grid On Sheet1
    By jo15765 in forum Excel General
    Replies: 2
    Last Post: 06-10-2014, 04:19 PM
  3. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  4. [SOLVED] Macro to pull imported data from sheet2 and place data in specific rows on sheet1
    By PatRiot199 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2013, 04:22 PM
  5. Macro to pull data from sheet1 to sheet2
    By rupss01 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-11-2011, 02:29 AM
  6. Replies: 15
    Last Post: 01-19-2011, 11:37 PM
  7. Pull data from sheet2 to sheet1 help
    By lilc420 in forum Excel General
    Replies: 3
    Last Post: 08-23-2010, 12:34 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