+ Reply to Thread
Results 1 to 17 of 17

Formula to lookup & sum items with same refrence number

  1. #1
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Formula to lookup & sum items with same refrence number

    Hello Everyone,

    I want a formula that will lookup and sum items that have same reference number based on a criteria. Please see simple excel file attached. You will get a better understanding by looking at it.


    Thanks in advance
    HeadleyLookup & Sum item with same refrence numbers.xls
    Last edited by headley4ever; 08-21-2012 at 01:39 PM.

  2. #2
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Formula to lookup & sum items with same refrence number

    Try this:

    Please Login or Register  to view this content.
    Docendo discimus.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to lookup & sum items with same refrence number

    Try this formula in B25

    =SUMPRODUCT((A$3:A$18=8030)*(D$3:D$18>0),C$3:C$18)

    change the product code for the other rows
    Audere est facere

  4. #4
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Lookup & Sum ALL items that have Selling price greater than Zero.xlsThanks that formula works fine ..... I now need to write another formula that will Total ALL the items that have Sell price greater than Zero (0). So the total should in cell B25 should be 424

    Please Assist me with this.

    Thanks
    Headley

  5. #5
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Thanks that formula works fine ..... I now need to write another formula that will Total ALL the items that have Sell price greater than Zero (0). So the total should in cell B25 should be 424. See file attached

    Please Assist me with this.

    Thanks
    Headley

  6. #6
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Can any Experts online help me with my question

    Thanks in advance.
    Headley

    ---------- Post added at 07:15 PM ---------- Previous post was at 07:14 PM ----------

    Can you help me with my question

    Thanks in advance.
    Headley

  7. #7
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Formula to lookup & sum items with same refrence number

    Similar to the first one:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Thanks for your quick response HOWEVER I need to be able to type in the product item number in the formula and get the sum total for all of them that have a selling price greater than zero. These products are located all over on a massive file that import at the end of each week. The excel file i had attached is just small extract so you could have an idea of what i want.

    Thanks again for you help

    ---------- Post added at 07:47 PM ---------- Previous post was at 07:40 PM ----------

    I need to be able to type in item numbers {8030,8050,8060,9000} in the formula and get the total sold for the ones that have a selling price greater than Zero. So i would get 424. I will also use this formula for other products that we sell

    Many thanks again.
    Headley

  9. #9
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Thanks the formula you gave me worked OK for that situation.
    I now need another formula that will allow me to type in a list of item numbers and get the total sold for the ones with selling price greater than zero.
    Example : I want to be able to type in item numbers {8030,8050,8060,9000} in the formula and get the total sold for the ones that have a selling price greater than Zero. So i would get 424 in cell B25. I will also use this formula for other products that we sell.

    Hope i have explaine it clear.

    Thanks in advance.
    Headley

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Formula to lookup & sum items with same refrence number

    Hi Headley,

    See if a pivot table with filters will work for you. See the attached.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Formula to lookup & sum items with same refrence number

    Quote Originally Posted by headley4ever View Post
    I want to be able to type in item numbers {8030,8050,8060,9000} in the formula and get the total sold for the ones that have a selling price greater than Zero.
    You can use this version for multiple specified item numbers

    =SUMPRODUCT(ISNUMBER(MATCH(A$3:A$18,{8030,8050,8060,9000},0))*(D$3:D$18>0),C$3:C$18)

  12. #12
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Greetings your formula is good but there is one slight problem. If there is an error message in cell C or D eg: (#N/A or #REF!) The Total sold also shows this error message in (cell B25).

    Can the formula be adjusted to ignore these errors so i can get the Total Sold in cell (b25) and not the Error message.

    Thanks A lot.
    Headley

  13. #13
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Greetings your formula above is good but there is one slight problem. If there is an error message in cell C or D eg: (#N/A or #REF!) The Total sold also shows this error message in (cell B25).

    Can the formula be adjusted to ignore these errors so i can get the Total Sold in cell (b25) and not the Error message. Please see attached file again.

    Thanks A lot.
    Headley

  14. #14
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Formula to lookup & sum items with same refrence number

    Try this:

    Please Login or Register  to view this content.
    Confirmed as an array formula with Ctrl-Shift-Enter.

  15. #15
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Thanks for replying. If the error is in column "D" the formula dosent works it reflects the error in the tolat box ( cell B25). I need it to work whether the error is in column "C" or "D"


    Thanks Again
    Headley

  16. #16
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Formula to lookup & sum items with same refrence number

    How about:

    Please Login or Register  to view this content.
    Confirmed as an array formula with Ctrl-Shift-Enter.

  17. #17
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Formula to lookup & sum items with same refrence number

    Thank You Very Much. The Formula Works wonderfully.


    Thanks again for your help.
    Headley

+ 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