+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 - vlookup/index/match with two datasets on two sheets

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Excel 2007 - vlookup/index/match with two datasets on two sheets

    I have two data sets across two worksheets. The first worksheet contains sales order numbers (Sheet1:column A) and other data . The second worksheet contains sales order numbers (Sheet2:column A) and the product details.

    On sheet1, I had to manually duplicate a sales order number (inserting another row) if the number of units of the order is greater than 1. I then need to fetch the product details from sheet2 for each unit for that specific order number. However in sheet2, there are multiple products for one sales order number.

    How do i create a lookup/match to fetch the product details for each sales order number without duplicating the product details if there are multiple products for one sales order number?

    I know a simple vlookup function will return the values that it matches first and that is not what i want.

    Example: Sheet1

    Column A (Sales Order#) | Column B (Quantity)

    0417436GPCP | 1

    0417436GPCP | 1

    0413412FACY | 1

    0413412FACY | 1

    Sheet2

    Column A (Sales Order#) | Column B (Product) | Column C (Serial Number).....

    0417436GPCP | Door | A13251

    0417436GPCP | Window | A41315

    0413412FACY | Window | B41141

    0413412FACY | Lock | A4114151

    Ideal Output

    Column A (Sales Order#) | Column B (Quantity) | Column C (Product) | Column D (Serial Number)

    0417436GPCP | 1 | Door | A13251

    0417436GPCP | 1 | Window | A41315

    0413412FACY | 1 | Window | B41141

    0413412FACY | 1 | Lock | A4114151

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Please post an excel worksheet for better help.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Sample_Dataset_Formulas.xlsx

    I've attached a sample dataset. The fields highlighted in yellow are what i need to populate from Sheet2. The only match between the two sheets are the values from the "DEL_DOC_NUM" columns.

    Thank you.

  4. #4
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Quote Originally Posted by popipipo View Post
    Please post an excel worksheet for better help.
    Posted! Thanks in advance!

  5. #5
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Basically, i need the formula to return MULTIPLE corresponding values for ONE Lookup Value

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Hi

    Best way to use helper both sheet column A is use COUNTIF Sheet2 column A point to Sheet2 column B DEL_DOC_NUM, Cell A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.

    COUNTIF Sheet 1 column A cell A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    Sheet 1 Cell F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.

    Index change letter to point next column so on.

    See the file!

    Regard
    micope21
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  7. #7
    Registered User
    Join Date
    05-22-2014
    Posts
    5

    Re: Excel 2007 - vlookup/index/match with two datasets on two sheets

    Quote Originally Posted by micope21 View Post
    Hi

    Best way to use helper both sheet column A is use COUNTIF Sheet2 column A point to Sheet2 column B DEL_DOC_NUM, Cell A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.

    COUNTIF Sheet 1 column A cell A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    Sheet 1 Cell F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.

    Index change letter to point next column so on.

    See the file!

    Regard
    micope21
    Thank you so much!

+ 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] Excel 2007 : Removing the #n/a from this index match formula
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2015, 12:47 PM
  2. Index, Match VBA Excel 2007
    By wid2001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2014, 01:02 PM
  3. Looking up data from two sheets with vlookup or index and match
    By joeycrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 04:56 PM
  4. [SOLVED] Excel 2007 : Sumif, Index, match formula
    By Bebe22 in forum Excel General
    Replies: 4
    Last Post: 07-27-2012, 10:27 AM
  5. Index / Match / Vlookup Loop across 3 sheets
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2009, 03:27 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