Share via

SUMIF returning #N/A-Function Argument returns FALSE when TRUE ???

Venkata Marella 0 Reputation points
2026-01-13T17:55:14.29+00:00

SUMIFS returing FALSE when TRUE...Not sure why... see below

User's image

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer recommended by moderator
  1. Hendrix-C 12,120 Reputation points Microsoft External Staff Moderator
    2026-01-13T18:49:33.9766667+00:00

    Hi @Venkata Marella,

    Thank you for posting your question in the Microsoft Q&A forum.

    According to your concern, the reason your formula returns false is because that Excel does not support chained comparisons. It doesn't treat the conditions "J2 > 3500 < 74600" as "J2 between 3500 and 74600" but evaluates from left to right.

    For example, for J2 > 3500 < 74600, Excel evaluates first comparison J2 > 3500 and returns the results into TRUE/FALSE. Then it compares that to the next number and break the logic since it compares TRUE/FALSE to 74600 which will return FALSE.

    If you want to combine two comparisons, you need to use the formula AND(). Instead of J2 > 3500 < 74600, the correct syntax should be AND(J2>3500, J2<74600). Excel will compare J2 value with both comparisons and will return TRUE if it meets all two conditions and FALSE if it doesn't meet at least ones.

    I hope this helps you move forward smoothly. If you have more questions or need further clarification, feel free to leave a comment here and I’ll be happy to continue supporting you.

    Thank you for your patience and understanding, and I look forward to assisting you further.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dana D 0 Reputation points
    2026-01-18T16:00:29.25+00:00

    Hi. It seems like you are receptive to ideas...

    What you have is a decreasing percentage formula.

    That complex xl97 equation is presumably going to be copied down hundreds of employees.

    I would recommend you change your approach for many reasons... one of which is posibiliy of manually calculating something wrong...

    Lets pick an example..

    ((4230)+(T20-74600)*4%)

    but let's use the equation:

    4230.45 =((74600-3500)*5.95%)

    4230.449994 =((74599.9999-3500)*5.95%)

    The correct coefficient should be 4230.45

    I would use a table to document your values, and avoid having to calculate all those values.

    I would recommend doing a search for progressive lookup equation and avoid doing IFS.

    User's image

    0 comments No comments

  2. Venkata Marella 0 Reputation points
    2026-01-13T19:34:44.8033333+00:00

    Perfect!That worked Hendrix C. Thank you so much..I was really struggling using evaluate formula and so on.....I now have the value returned as true.

    Regards

    [Moderator note: personal information removed]


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.