+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Sum duplicate vlookup's

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2007
    Posts
    24

    Sum duplicate vlookup's

    So I have data that looks like this

    Item # Date Delivered Number Delivered
    Item A 12/12/10 75
    Item A 12/25/10 300
    Item A 12/3/10 740
    Item B ** **
    Item B ** **

    the stars just mean the same format. What I want to be able to do is use vlookup (on the item number) to give me the total delivered for the whole month (my sheet is for the month of december as you can see from my example data).

    Is there a way I can do this?
    Last edited by derpotheman; 01-24-2011 at 06:49 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum duplicate vlookup's

    try Sumif:

    =SUMIF(A:A,X1,C:C)

    where column A contains Item #, and column C contains Quantities and X1 contains the Item # you want to add up. Note that this assumes, as you said, that all are for 1 month and you don't need to distinguish month also...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-17-2011
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Sum duplicate vlookup's

    works great, thanks! i had like 6 nested if's which somewhat accomplished the task... but this is way easier

  4. #4
    Registered User
    Join Date
    01-25-2011
    Location
    Tremonton,UT
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sum duplicate vlookup's

    Given the following table, how can I sum the fuel purchased in each individual state? I believe it would be a sumif formula, or hlookup, or a combination.

    Fuel
    Date State City Gallons
    1/2/11 UT TREMONTON 186.548
    1/3/11 CA BARSTOW 152.589
    1/5/11 NV LAS VEGAS 178.500
    1/7/11 UT SALT LAKE 139.780
    1/8/11 NV CARSON
    1/9/11 UT SALT LAKE 120.780


    Totals
    CA
    NV
    UT

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum duplicate vlookup's

    Welcome to the forum,

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

  6. #6
    Registered User
    Join Date
    01-25-2011
    Location
    Tremonton,UT
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sum duplicate vlookup's

    lets try this again. Given the table in the attached excel file, how can I sum all fuel purchased within each state? Thanks for your help.
    Attached Files Attached Files

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum duplicate vlookup's

    I mean you should start your own NEW thread instead of attaching onto somebody else's thread.

+ 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