+ Reply to Thread
Results 1 to 9 of 9

SumIf Formula Not Adhering to Criteria

  1. #1
    Registered User
    Join Date
    02-18-2021
    Location
    Ontario, California
    MS-Off Ver
    2013
    Posts
    3

    SumIf Formula Not Adhering to Criteria

    Hello all and thank you to anyone and everyone that can help me out.

    I have a simple SUMIF formula, but the result seemingly returns the sum amount that includes a number that does not meet the criteria in the formula.

    =SUMIF($A$1:$H$18,J20,$H$1:$H$18)

    Cell J20 is "OT" but the formula seems to include the sum amount only for [H7(Reg):H8(OT)] yet excludes all others... I'm confused on the reasoning???

    Thanks again for any help you can give me

  2. #2
    Registered User
    Join Date
    12-04-2020
    Location
    Bangkok
    MS-Off Ver
    365
    Posts
    61

    Re: SumIf Formula Not Adhering to Criteria

    The formula works correctly. There are hidden rows!

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,431

    Re: SumIf Formula Not Adhering to Criteria

    With
    =SUMIF($A$1:$H$18,J20,$H$1:$H$18)
    You are using 2 ranges different in size: one has 8 columns but other has 1 column only.
    SUMIF works with single range (BOTH vertical OR horizontal range)

    so, try:

    =SUMIF($A$1:$A$18,J20,$H$1:$H$18)
    Quang PT

  4. #4
    Registered User
    Join Date
    02-18-2021
    Location
    Ontario, California
    MS-Off Ver
    2013
    Posts
    3

    Re: SumIf Formula Not Adhering to Criteria

    Quote Originally Posted by phatdear View Post
    The formula works correctly. There are hidden rows!
    Thank you checking it out,
    The original spreadsheet is a template that is going to include those currently for the time being; although, the hidden rows have no values within them which I assume should not make any difference.

  5. #5
    Registered User
    Join Date
    02-18-2021
    Location
    Ontario, California
    MS-Off Ver
    2013
    Posts
    3

    Re: SumIf Formula Not Adhering to Criteria

    I tried the formula and it resulted with the same amount

  6. #6
    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,244

    Re: SumIf Formula Not Adhering to Criteria

    Did you see post #2? What result are you expecting?
    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.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: SumIf Formula Not Adhering to Criteria

    =SUMIF($A$1:$A$18,J19,$H$1:$H$18)

    returns $1,676.80

    Why do you expect a different answer, when that is the correct answer? You are either mistaken, or have failed to tell us something!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Registered User
    Join Date
    12-04-2020
    Location
    Bangkok
    MS-Off Ver
    365
    Posts
    61

    Re: SumIf Formula Not Adhering to Criteria

    Just to point out to you again, this is from the the original file that you provided.
    There are hidden rows (13-18) and there is value in one cell which is resulted from another formula.

    js-MDNmg-Wg1.png

  9. #9
    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,244

    Re: SumIf Formula Not Adhering to Criteria

    There is no value in the hidden rows that makes a difference - both Reg values are 0.

+ 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. How do I run SUMIF formula only if certain criteria is met?
    By macau2010tong in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2020, 06:20 AM
  2. Replies: 4
    Last Post: 04-22-2020, 08:29 AM
  3. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  4. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  5. Replies: 1
    Last Post: 07-11-2013, 06:03 AM
  6. [SOLVED] Formula in SUMIF Criteria
    By Zvity in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-06-2012, 05:22 AM
  7. [SOLVED] SUMIF Formula w/ OR Criteria
    By SJT in forum Excel General
    Replies: 5
    Last Post: 08-04-2006, 12: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