+ Reply to Thread
Results 1 to 8 of 8

Vlookup of duplicate data from a seperate sheet

  1. #1
    Registered User
    Join Date
    11-24-2010
    Location
    houston, tx
    MS-Off Ver
    Excel 2003
    Posts
    4

    Vlookup of duplicate data from a seperate sheet

    I have a project that I have been working on that is beyond my realm of knowledge. The data in the forecast sheet changes in sequence so I need a search by SKU and give me usages in the planning sheet. This seems to be working, but I have duplicates of SKU depending on the line that I need to get a total for planning. See corresponding colors.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Smile Re: Vlookup of duplicate data from a seperate sheet

    Hi,

    The Vlookup & Hlookup formulas only return results from the first match, so you if you are going to use them you have to create a Unique ID for each entry. I've done this in Column A of the forecast by adding together the SKU and Prd Line. Then you just change the vlookup so it looks in Column A instead.

    I've done the first three for you.

    Although this is not best way, you can perhaps look at using Sumifs instead I put them below the green. If you used them they wouldn't need the extra column, plus they are faster and easier to work with.

    Hope that helps.

    Apologies the Sumifs won't work unless you have 2007...
    Attached Files Attached Files
    Last edited by Lifesigns; 11-29-2010 at 06:08 PM. Reason: Missed some info.
    If the post was helpful please click the black star on the bottom left to add some reputation and mark your thread as SOLVED.

    A day with nothing new achieved or learned, albeit however small, is a day lost forever?

    Constant Never Ending Improvement

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

    Re: Vlookup of duplicate data from a seperate sheet

    Put a helper column in the forecast sheet and changed the vlookup accordingly. Only did three columns.

    Alan
    Attached Files Attached Files
    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

  4. #4
    Registered User
    Join Date
    11-24-2010
    Location
    houston, tx
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup of duplicate data from a seperate sheet

    Thank you both, I feel I have learned so much in the past week. I thought I could not use the helper column as the person I am building this for may have trouble doing this consistently, but it seems okay. The Vlookup Lifesigns did for me works great, but I am curious as to how the sumif works. I have 2007, but the gold cells read #NAME?. I will fiddle around with it a to see if I can figure it out.
    Last edited by saenz9000; 11-30-2010 at 09:30 AM.

  5. #5
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: Vlookup of duplicate data from a seperate sheet

    If you open it in 2007 and it still shows as #Value then try F12 to save as and then select .xlsx as the extension. Then if you reopen the file it should show correctly.

  6. #6
    Registered User
    Join Date
    11-24-2010
    Location
    houston, tx
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup of duplicate data from a seperate sheet

    Aha! I just leanred that I have Excel version 2003. The vlookup is working for me and I am thankful.

  7. #7
    Forum Contributor
    Join Date
    11-25-2010
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    120

    Re: Vlookup of duplicate data from a seperate sheet

    Yea sadly Sumifs are a new feature in 2007 but you can also use Sumproduct.

    I've attached the file but changed the Sumifs to Sumproduct.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-24-2010
    Location
    houston, tx
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup of duplicate data from a seperate sheet

    Thats awesome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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