+ Reply to Thread
Results 1 to 7 of 7

Can't figure out why my SUMIFS formula is not working!

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    32

    Can't figure out why my SUMIFS formula is not working!

    I have no idea why this formula is not cooperating. Someone already helped me with this once and it was working, but now I've had to repopulate the data and it's no longer returning any results. Can someone take a look and see what I'm missing here?!Sample Test.xlsx

  2. #2
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Can't figure out why my SUMIFS formula is not working!

    Your "helper" column on Extracted Data (column H) still has individual dates in it, despite the formatting, while you are trying to use a month-year combo in your SUMIF criteria.

    To get around this, you could change the formula in Extracted Data, Column H to:

    =TEXT(G2,"mmm-yy")

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Can't figure out why my SUMIFS formula is not working!

    You are using the TEXT function to produce a string from the date in row 1 (which is always the first day of the month) to compare to a date in column H (which can be any day of the month). You are therefore comparing a month to a full date, which will match only when the transaction is on the first day of the month. I have modified your formula to compare a date to a date, and I have modified "Extracted Data" so that column H shows the first day of the month for that transaction. Now they will match.

    You must maintain that formula in column H.

    I think you may have some confusion about using TEXT to compare a string to a date. You are using TEXT to create a string with the same format as the display for the date, but the way a date is displayed has nothing to do with how you compare things to it. The underlying value is the same no matter what the format is. When you do date comparisons, you want to compare to the underlying value, not how the date is displayed.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Can't figure out why my SUMIFS formula is not working!

    Your dates in column H of the 'Extracted Data' sheet are proper dates, just formatted to show the month and year. Consequently, you should change your formula in B2 of the 'JSOH By Month' sheet to this:

    =SUMIFS('Extracted Data'!$R:$R,'Extracted Data'!$F:$F,$A2,'Extracted Data'!$H:$H,B$1)

    then you can copy this across and down.

    Hope this helps.

    Pete

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Can't figure out why my SUMIFS formula is not working!

    Yogi52o has taken a slightly different approach from mine that will work just as well, if you prefer it. Mine results in a simpler SUMIFS formula. Pretty much a matter of preference.

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Can't figure out why my SUMIFS formula is not working!

    Hi, I gues you want to achieve the summary based on month if so
    Try the below formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does that help ?
    Click just below left if it helps, Boo?ath?

  7. #7
    Registered User
    Join Date
    01-24-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Can't figure out why my SUMIFS formula is not working!

    That was it! I knew it had to be something simple that I just wasn't getting.

+ 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. I screwed up a formula which was working fine and cannot figure it out!!!
    By boomtown25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2014, 10:52 AM
  2. Sumifs formula isn't working correctly
    By gjergji in forum Excel General
    Replies: 5
    Last Post: 09-20-2012, 05:15 PM
  3. [SOLVED] SUMIFS formula not working in VBA
    By meechie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2012, 03:06 PM
  4. Excel 2007 : SUMIFS Formula Not Working
    By milliemoo in forum Excel General
    Replies: 7
    Last Post: 03-06-2012, 12:16 PM
  5. Replies: 6
    Last Post: 09-21-2009, 02:26 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