+ Reply to Thread
Results 1 to 7 of 7

Totaling Rows That Match Given Criteria

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    8

    Totaling Rows That Match Given Criteria

    Product SKU Sales (Units) Total Units Per SKU
    Shampoo 123456 500
    Conditioner 123455 1200
    Shampoo Fine 123440 1205
    Shampoo Curly 123440 600
    Conditioner Fine 123440 1701
    Conditioner Curly 123440 1923

    I am trying to sum up the totals of rows if the SKU columns match.

    Row 2 should read 500,
    Row 3 should read 1,200
    Row 7 should read 5,429.

    I tried "Countif" but I would need to use each SKU in quotations and I have hundreds to go through. I have been staring at this for a while now and my brain has become mush. Perhaps there is an easier way to do this? Thank you for your help!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Totaling Rows That Match Given Criteria

    Use SUMIF instead

    Or even better..try pivot tables
    www.cpearson.com/excel/pivots.htm
    Last edited by Ace_XL; 10-01-2012 at 02:54 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Totaling Rows That Match Given Criteria

    Thank you for your reply. The Pivot Table is a great idea. However, how would you use the SumIF Function you specified as well? What would the syntax be? Or would it also involve quotations?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Totaling Rows That Match Given Criteria

    For your table use this in Row 2..

    =SUMIF(B:B,B2,C:C)

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Totaling Rows That Match Given Criteria

    Awesome! Thanks again!!!

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Totaling Rows That Match Given Criteria

    Hi jtoscani

    Just to take it one further!

    In Row 2, Column 4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you want to highlight the row, conditional format:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Totaling Rows That Match Given Criteria

    Thank you Kevin, this also worked well!

+ 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