+ Reply to Thread
Results 1 to 12 of 12

SUMIFS error

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    SUMIFS error

    I am having problems with the SUMIFS function and think it may just be a problem with excel. The formula i have sums one column if three criteria are met. The second two are working fine because when I remove the first it calculates the sum fine - they are both comparing dates.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The first criteria is causing the issue:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    So DE_Line is a range where the cells are populated by One word of text in each cell. The cell reference is to a cell containing one text word too. The bizarre thing is when I do a simple SUMIF using only this problem criteria, it works fine and returns the summed data:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Which makes me think there is nothing wrong with the fact that it is text etc. So I am thinking maybe it is just an error with excel, anyone know anything about this or had similar experience/ know how to work around it?

    Hope that makes sense, thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS error

    Disregard this post
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: SUMIFS error

    why is that?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS error

    If your file isn't too big maybe attach it so we can take a look.

  5. #5
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: SUMIFS error

    Unfortunately I cannot, but why did you say disregard it, it was a genuine question as to whether anyone had had the same issue

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS error

    Quote Originally Posted by strud View Post
    Unfortunately I cannot, but why did you say disregard it, it was a genuine question as to whether anyone had had the same issue
    I made an incorrect suggestion in that post so I removed it but you can't make an empty post so I added the disregard note.

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

    Re: SUMIFS error

    If you are trying to SUM when the date is between 1st and 28th august then you need to make the second >= into a <= like this

    =SUMIFS(DE_nQty,DE_Line,'Helper Cells'!B1,DE_Date,">="&DATE(2014,8,1), DE_Date,"<="&DATE(2014,8,28))
    Audere est facere

  8. #8
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: SUMIFS error

    thanks, i had missed that bit, but the other still remains even when I alter that

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIFS error

    Hi,

    I suspect Tony had written a comment, posted to the thread and then realised he wanted to change it so went back to edit the comment out and added disregard this. He probably caught the post in the first couple of minutes which is why it isn't annotated with the 'Edit'...comment by the software. I'm sure he was meaning disregard his post not yours.

    Why can't you upload the workbook. All we want is a sample with just a few rows that exhibit the problem. Anonymise any data if necessary.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: SUMIFS error

    Quote Originally Posted by strud View Post
    thanks, i had missed that bit, but the other still remains even when I alter that
    How are the ranges defined? Try checking that all named ranges start on the same row

  11. #11
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: SUMIFS error

    Ok so I have no idead why this matters but you saying that prompted me to think about the ranges. They did start in the same row - row 2, I had used an OFFSET..COUNTA... formula to name them, but one was missing a title. As soon I stuck something in the first row it worked.

    Not sure why it is different for SUMIF and SUMIFS given that that was the solution.

    Anyhow it works now so cheers!

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

    Re: SUMIFS error

    Quote Originally Posted by strud View Post
    Not sure why it is different for SUMIF and SUMIFS given that that was the solution.
    Was the SUMIFS formula actually giving you an error value rather than an incorrect result?

    SUMIFS is different to SUMIF in that regard - if you use mismatched ranges in SUMIFS you get a VALUE# error, in SUMIF if you use mismatched ranges then excel implicitly adjusts the 2nd range (sum range) so that it's the same size/shape as the 1st range, so no error

+ 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] SUMIFS error= #VALUE!
    By z_eeen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2014, 02:07 PM
  2. [SOLVED] If error(sumifs......
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2013, 02:13 PM
  3. Sumifs Formula Error
    By Hudson in forum Excel General
    Replies: 3
    Last Post: 02-17-2012, 03:16 PM
  4. SUMIFS and #VALUE! error
    By BDAtlanta in forum Excel General
    Replies: 3
    Last Post: 09-18-2011, 08:43 PM
  5. SUMIFS() error?
    By fgrose in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-07-2006, 01:45 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