+ Reply to Thread
Results 1 to 4 of 4

Sum if?

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Sum if?

    Hi, I'm trying to have excel 2007 sum a value in one column if another column matches the value.

    Here's something similar to what I have:

    A | B | C
    Item | Order # | Cost
    Widget | 046 | $50.00 |
    Thingamagig | 047 | $100.00
    Dohickey | 046 | $70.00

    I'll have multiple items with the same order number, and I want excel to give me a total of the cost column for all items that are from a certain order i.e.

    Order 046 Total: $120.00
    Last edited by james2; 07-16-2010 at 11:43 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Post Re: Sum if?

    Take a look at sumproduct

    http://www.xtremevbtalk.com/showthre...37#post1285037

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

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

    Re: Sum if?

    If it's just by order number then SUMIF should be sufficient. If you list specific order numbers in E2 down then try this formula in F2 copied down to get a total for each

    =SUMIF(B:B,E2,C:C)
    Audere est facere

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sum if?

    What you're looking for is what you called it "SumIF"
    =SUMIF($B$2:$B$500,D1,$C$2:$C$500) where D1 contains the order # you want to sum. Make sense?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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