+ Reply to Thread
Results 1 to 9 of 9

Need help with SUMIF formula

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Need help with SUMIF formula

    I am attempting to write a SUMIFS formula but it wasn't working. So, I thought I'd take each argument at a time so I wrote a simple SUMIF formula. (see attached file). The result is not the SUM of the cells but only the amount in the first cell of the range. I copied and pasted the dates so both date cells are formatted the same. I then hard entered the numbers that I need the formula to sum to ensure a formula in those cells wasn't causing the problem. I still can't get this basic SUMIF formula to work so I can move on and created my formula based on multiple criteria. Any assistance would be greatly appreciated to explain what is wrong.
    help.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need help with SUMIF formula

    Which cell contains or should contain the formula and what exactly do you expect it to do?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Need help with SUMIF formula

    Your ranges are inconsistent. the criteria range covers only 1 row, hence it returns just the first value

    Use either of these
    =SUMPRODUCT($R$10:$S$13*($R$9:$S$9=W9))
    or
    =SUM(INDEX($R$10:$S$13,,MATCH(W9,$R$9:$S$9,0)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need help with SUMIF formula

    =IF(R9=W9, R10+R11,"")

    Seems to work.

  5. #5
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Need help with SUMIF formula

    Thank you all for the answers. As I said, my ultimate goal is to write one that will match multiple criteria and this is just the starting point. Cell Y9 is the formula I am trying to get to work. It should sum cells R10 and R11 since the dates in R9 and W9 match. I am not interested in getting into an INDEX,MATCH formula as it will get convoluted with all I ultimately want the formula to do. A SUMPRODUCT is an option however I wanted to just use the SUMIFS in the end. Using just an IF formula is not going to work when I get to writing the formula for multiple criteria as you can only use 7 nested IF statements.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Need help with SUMIF formula

    You can use sumproduct with more criteria.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Need help with SUMIF formula

    Quote Originally Posted by NS4Excel View Post
    Using just an IF formula is not going to work when I get to writing the formula for multiple criteria as you can only use 7 nested IF statements.
    You can use up to 64 with Excel 2010, actually.

  8. #8
    Forum Contributor
    Join Date
    12-06-2012
    Location
    sacramento,calif
    MS-Off Ver
    Excel 2010
    Posts
    217

    Re: Need help with SUMIF formula

    Quote Originally Posted by NS4Excel View Post
    I am attempting to write a SUMIFS formula but it wasn't working. So, I thought I'd take each argument at a time so I wrote a simple SUMIF formula. (see attached file). The result is not the SUM of the cells but only the amount in the first cell of the range. I copied and pasted the dates so both date cells are formatted the same. I then hard entered the numbers that I need the formula to sum to ensure a formula in those cells wasn't causing the problem. I still can't get this basic SUMIF formula to work so I can move on and created my formula based on multiple criteria. Any assistance would be greatly appreciated to explain what is wrong.
    Attachment 313672
    Are you able to run the dates down its own column?

  9. #9
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Need help with SUMIF formula

    Maybe this should do it, using SUM and IF

    =SUM(IF(R9:S9=W9,R10:S11))

    Array Formula

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  2. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  3. SumIF formula with criteria is Text inside a Formula?
    By excellentlearner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2012, 06:40 PM
  4. Replies: 1
    Last Post: 01-22-2012, 02:47 PM
  5. [SOLVED] Is there a MAXIF formula similar to the SUMIF formula?
    By tlc in forum Excel General
    Replies: 2
    Last Post: 03-13-2006, 04:10 PM

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