+ Reply to Thread
Results 1 to 4 of 4

SUMIF not working

  1. #1
    Forum Contributor leo73pk's Avatar
    Join Date
    09-28-2006
    Location
    UAE
    MS-Off Ver
    2016, Microsoft 365
    Posts
    294

    SUMIF not working

    In the enclosed sample data. I need to calculate month-wise sum of quantity for each year in both ranges M4:X13, M17:X26. I have tried to calculate it thru SUMIFs but its not working. My existing SUMIF formula is mentioned in M4 and M17.

    Kindly help.
    Attached Files Attached Files
    Last edited by leo73pk; 09-21-2019 at 12:05 PM.
    Best Regards,
    Hamza


    It is the greatest of all mistakes to do nothing because you can only do little - do what you can.

  2. #2
    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: SUMIF not working

    Your SUMIFS formula is correct. It is your data that is wrong.

    Two problems:

    The year in column B is actually a date formatted to look like a year. Change the formula to

    =YEAR(A2)

    and change formatting for that column to General.

    The month names in M3:X3 are text, and the data in column C are dates formatted to look like text. Change the formula in column C to be

    =TEXT(A2,"MMM")

    and change formatting for that column to General.

    (Also, there was no need to use the ABS function here. Not sure what you had in mind there.)
    Attached Files Attached Files
    Last edited by 6StringJazzer; 09-21-2019 at 11:46 AM. Reason: added notes on format
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: SUMIF not working

    I too would use the above approach, but for what it's worth, here's another way

    =SUMIFS($E$2:$E$2528,$A$2:$A$2528,">="&DATE($L4,COLUMNS($M:M),1),$A$2:$A$2528,"<"&DATE($L4,COLUMNS($M:M)+1,1),$D$2:$D$2528,$L$2)

    Beth.

  4. #4
    Forum Contributor leo73pk's Avatar
    Join Date
    09-28-2006
    Location
    UAE
    MS-Off Ver
    2016, Microsoft 365
    Posts
    294

    Re: SUMIF not working

    Thanks. Issue resolved

+ 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. SUMIF not working please help
    By sharaftali in forum Excel General
    Replies: 7
    Last Post: 07-04-2017, 10:23 AM
  2. SUMIF in VBA not working
    By Luchano in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2015, 02:58 AM
  3. SUMIF not working
    By ld2x07 in forum Excel General
    Replies: 4
    Last Post: 05-12-2014, 08:51 AM
  4. SumIF not working
    By lucky3 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-18-2012, 04:30 AM
  5. SumIF is not working
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 03:05 PM
  6. SumIF is not working
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. SumIF is not working
    By DanVDM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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