+ Reply to Thread
Results 1 to 13 of 13

SUM IF Formula not working

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    SUM IF Formula not working

    Simple SUM IF Formula is not working...

    =SUM(SUMIFS('Project Tracking'!O:AS,'Project Tracking'!B:B,A3))

    Or

    Since I created defined names for cell ranges

    =SUMIF(January,Asset,A3)

    Can some one please tell me what I am missing??? Why is this not working?

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: SUM IF Formula not working

    I would approach it differently, though merged cells can look good on reports they often cause problems. (Personally I'm no fan of defined name ranges because for me they can make it difficult to debug formulas so I didn't use any.) Now, I used a sumproduct and you can either hide the dates I put in row 3 or change them to a font color that matches the cell color so they are not visible.
    Here is the sumproduct...
    =SUMPRODUCT((MONTH('Project Tracking'!$O$3:$NO$3)='Revenue Tracking'!B$1)*('Project Tracking'!$B$8:$B$16='Revenue Tracking'!$A3),'Project Tracking'!$O$8:$NO$16)

    I am attaching your sheet with the sumproduct in the revenue tracking tab so you can see what the formula refers to.
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: SUM IF Formula not working

    Just a patch to Sam's formula (if I may), so as to dismiss helper rows in both tabs.
    In B3, copied across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  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,981

    Re: SUM IF Formula not working

    @Sugarprincess21

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: SUM IF Formula not working

    Post deleted.
    Last edited by kvsrinivasamurthy; 01-09-2022 at 07:42 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: SUM IF Formula not working

    SUMIF ranges should be the same size otherwise you will get erroneous results.

    https://support.microsoft.com/en-us/...2-1697a653039b


    I would use the formula in post #3 BUT do not use full column ranges with SUMPRODUCT: set upper range to likely maximum

    =SUMPRODUCT((MONTH('Project Tracking'!$O$5:$NO$5)=MONTH(DATE(2022,COLUMN(A$1),1)))*('Project Tracking'!$B$8:$B$1000='Revenue Tracking'!$A3),'Project Tracking'!$O$8:$NO$1000)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    06-05-2019
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: SUM IF Formula not working

    Sorry to bug you for more help but I tried transferring your fix to my working copy along with combining the other suggestions as I do need the cells to be somewhat infinite as more project tracking gets added and its back to not working

    I have attached another updated example, I had to delete a lot of it as the file was too large but I think there is enough there to figure out what is going on.
    Attached Files Attached Files
    Last edited by Sugarprincess21; 01-09-2022 at 02:58 PM. Reason: attachment was too large

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: SUM IF Formula not working

    Change the months in row 3 to GENERAL/NUMBER not TEXT as Excel is comparing the numeric month from the date with your TEXT values: mismatch!

  9. #9
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: SUM IF Formula not working

    Or use this new version, which does not require values in row 3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    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,981

    Re: SUM IF Formula not working

    So which version of Excel do you have? Your profile still says 10 - that is your Windows OS, not your Office version.

  11. #11
    Registered User
    Join Date
    06-05-2019
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: SUM IF Formula not working

    Microsoft 365 for windows

  12. #12
    Registered User
    Join Date
    06-05-2019
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: SUM IF Formula not working

    Thanks Estevaoba,

    It's working perfectly so far, I am really unfamiliar with using SUMPRODUCT and MONTH functions... What is "=COLUMNS$A$1:A$" supposed to be referring to though just for my knowledge and understanding.

  13. #13
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: SUM IF Formula not working

    You're welcome. Glad it worked.
    =COLUMNS($A$1:A$1) equals 1 and turns into 2, then 3... as you copy across, so it is a resource you can use when you need to refer to a sequence, like month numbers.
    Thank you for the feedback, for the reputation added and for marking the thread solved.
    And don't forget to thank all the others that have helped you by adding to their reputation, especially Sam Capricci, who started out this formula.
    Best wishes for the new year!

+ 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. Format a part of a text working with only value not working with formula result
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2017, 05:41 AM
  2. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  3. Replies: 3
    Last Post: 05-14-2015, 07:32 AM
  4. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  7. Replies: 2
    Last Post: 08-01-2012, 11:53 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