+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : SumIf

  1. #1
    Registered User
    Join Date
    04-16-2011
    Location
    Oakland, CA.
    MS-Off Ver
    Excel 2003
    Posts
    3

    SumIf

    I have a spreadsheet from my employer that lists in the "Quantity" column several types of numbers representing in the "Type" column things like "DeadMiles", "PerMile", "Commins", "CellPh", etc. I need to add up all the "DeadMiles" and "PerMile" quantities. I thought the SUMIF functions would do it with J5:J1483 being the range of the "Type" column and H5:H1483 being the range of the "Quantity" column. I figured I would enter "DeadMile" and "PerMile" in two separate SUMIF's and then add them together. So here is my first attempt at the DeadMiles:

    =SUMIF(J5:J1483,"Type"=ISTEXT("DeadMile"),H5:H1483)

    I keep getting 0 returned by this function. Where's my mistake?

    Any suggestions are much appreciated.

  2. #2
    Registered User
    Join Date
    10-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: =SUMIF - How do I make this work?

    This should do what you want.

    =SUMIF(J5:J1483,"DeadMile",H5:H1483)

  3. #3
    Registered User
    Join Date
    04-16-2011
    Location
    Oakland, CA.
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: =SUMIF - How do I make this work?

    Thank you, Mike.

    That did it. So simple, I should have though of trying that. Curious if I could put both DeadMile and PerMile into the SUMIF function at the same time. And could I just use field names instead of row ranges?

    Bruce
    Last edited by brucenow; 04-16-2011 at 07:19 PM.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: =SUMIF - How do I make this work?

    You can do a sum of the SUMIF()'s

    =SUM(SUMIF(J5:J1483,"DeadMile",H5:H1483),SUMIF(J5:J1483,"PerMile",H5:H1483))

    and yes you can use named ranges to replace the ranges currently used

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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