+ Reply to Thread
Results 1 to 10 of 10

Simple SumIf Not Working

  1. #1
    Registered User
    Join Date
    11-09-2015
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    61

    Simple SumIf Not Working

    Hi All:

    Back for some education. I've been racking my brain on this all day and KNOW it is something simple that I don't see (or maybe understand). I have a simple SumIf formula that makes sense to me...

    =SUMIF(A2:A25,"Jim",H2:I25)

    I read this as if A2 through A25 (can I use A:A?) has the value of Jim, then add up the numbers in H2 through I25. Is my interpretation, right? Attaching a sample workbook and am expecting the formulas in M8, M9 and M10 to turn the numbers in red.

    Thanks for any guidance...I'm sure it will be an "aw duh" solution.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Simple SumIf Not Working

    Not good practice to use entire columns, specially when you have a table column like in the formula bellow.

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

  3. #3
    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,207

    Re: Simple SumIf Not Working

    Try

    im M4

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


    Copy across

    Do NOT use full column ranges with SUMPRODUCT

    For SUMIF the range to summed must the same size as the criteria range: hence you cannot sum 2 columns i.e H:I
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Simple SumIf Not Working

    To play and learn with another formula.

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

    And two other functions for you to study.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 03-15-2024 at 04:06 PM.

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

    Re: Simple SumIf Not Working

    Pl see file. Note changes in L8:L10
    For any version
    In M8, copied down

    =SUMPRODUCT(($A$2:$A$25=L8)*($I$2:$I$25+$H$2:$H$25))

    For 365 version. In N8

    =BYROW(L8:L10,LAMBDA(ro,SUMPRODUCT((A2:A25=ro)*(I2:I25+H2:H25))))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    11-09-2015
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    61

    Re: Simple SumIf Not Working

    Thank you DJunqueira! I tested it and of course it works. I read both your posts and appreciate some alternatives (ByColand Transpose) to play with. It makes sense once I see it, but sometimes I can't seem to get the nuance. Thank you!


    Thank you JohnTopley! I copied this and working through it. Appreciate the explanation of SumIf and SumProduct. It gives me an alternative to explore.


    Thank you kvsrinisvasamurthy! Appreciate the sample and the ByRow example as another way to look at it.


    Really some great things to look at from all three of you. There is so much in Excel that I don't use and it's always interesting to learn something new. I'm glad there is a resource like this to get help!
    Last edited by willhh3; 03-16-2024 at 10:31 AM.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Simple SumIf Not Working

    Cell M8 formula

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

  8. #8
    Registered User
    Join Date
    11-09-2015
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    61

    Re: Simple SumIf Not Working

    Thank you wk9128. I'll explore this and gain some knowledge!

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Simple SumIf Not Working

    willhh3 You're Welcome. Glad to help . Thank You for the feedback and rep.

  10. #10
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Simple SumIf Not Working

    Tks for the feedback, glad to help.

+ 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. Replies: 3
    Last Post: 08-29-2019, 04:38 PM
  2. Well working simple macro now not working-open folder
    By jomili in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2017, 08:24 AM
  3. Simple Sumif Help
    By alohadboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2016, 11:37 AM
  4. SumIf (Should be simple!)
    By Keelin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2014, 11:56 PM
  5. Simple SUMIF, I think...
    By steph in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-15-2006, 01:35 PM
  6. [SOLVED] this may be simple, sumif question
    By Sandy Mann in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] this may be simple, sumif question
    By jim sturtz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Tags for this Thread

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