+ Reply to Thread
Results 1 to 7 of 7

Sum if

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2003
    Posts
    9

    Sum if

    I'm sure this is quite simple, but I cant seem to figure it out. I typed my example below.

    Basically, I need to tally the number for each size. So how many 8" items are there? 5" items etc.?

    Item #1 5" 1000
    Item #2 8" 500
    Item #3 3" 750
    Item #4 8" 2000
    Item #5 5" 250

    (Whats the formula for this part)
    Total 5" 1250
    Total 8" 2500
    Total 3" 750

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Sum if

    With B1:B5 containing your sizes, and B8:B10 also containing the sizes (not including the word Total - put that in column A), then you can put this formula in C8:

    =SUMIF(B$1:B$5,B8,C$1:C$5)

    then copy down to C10.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Sum if

    Assuming "Items #1" is in column A, "5"" is in column B, and "1000" in column C:
    =SUMIF(B:B,"5""",C:C)
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum if

    Assuming your data start in A2(Item #1)

    =SUMIF(B2:B100,"5"",C2:C100)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sum if

    or with an pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Sum if

    Pivots are better where more than absolute basic functionality is required.

  7. #7
    Registered User
    Join Date
    01-27-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Sum if

    Thank you everyone, problem solved!

    I really like that Pivot Table, I might have to look further into that in the future!!

+ 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