+ Reply to Thread
Results 1 to 6 of 6

How to SUM multiple LOOKUP results

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2011
    Location
    Inverness, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    How to SUM multiple LOOKUP results

    This is my first post on excelforum, I hope someone can help.

    I have a table of 'Product Sales', and every time a product is sold it populates the table with a 'stock code' in one column, and the 'quantity' sold in the next column. The table will contain multiple sales of the same stock code.

    I am trying to find a way to 'LOOKUP' every sale of a particular stock code, and return the sum of all the quantities sold of that one stock code.

    I think I need to use the LOOKUP function in some way, but if I am way off the mark, please let me know.

    Thanks

    Al.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: How to SUM multiple LOOKUP results

    Hello Al, welcome to Excelforum

    Sounds like you need SUMIF

    If stock codes are in column A and quantities in B then a formula like this should work for you

    =SUMIF(A:A,D2,B:B)

    where D2 contains a specific stock code
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-22-2011
    Location
    Inverness, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to SUM multiple LOOKUP results

    Brilliant, works a treat. Thanks very much daddylonglegs.

  4. #4
    Registered User
    Join Date
    10-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2010
    Posts
    88

    Re: How to SUM multiple LOOKUP results

    that's a mosquito....daddylonglegs are spiders.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: How to SUM multiple LOOKUP results

    Hello Sofistikat,

    In England crane flies are known as "daddylonglegs". It's a picture of a crane fly - as previously discussed in this forum

  6. #6
    Registered User
    Join Date
    10-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2010
    Posts
    88

    Re: How to SUM multiple LOOKUP results

    I stand corrected :-)

+ 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