Share via

IF statement doesn't recognize negative currency

Anonymous
2016-02-11T15:10:30+00:00

Hello, my IF statement works well in all instances except when one of the currencies results is negative.

  • N35= $293,000
  • N40= -$24,776.44
  • Therefore (obviously): N35 is Greater than N40

**My formula: =**IF(N40>N35,"Budget on Track",Over Spending")

Results with formula: "Budget on Track" is obviously wrong.

Excel does recognize that N40 is less than N35 because I have a conditional formatting that if N40 is less then N35 to format it red/pink (as seen in the image below).

Any help would be greatly appreciated! Please note that I'm using this formula in multiple other "budget fitness" boxes, so it can't  be specific to this one...

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2016-02-11T16:05:38+00:00

    I also tried using both formulas using a static -$24,757.44 (currency or general or number) and it still won't recognize negatives...

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-02-11T15:41:23+00:00

    Same thing- it still says "Budget on Track".

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-02-11T15:39:10+00:00

    How about N35?

    =IF(VALUE(N40)>VALUE(N35),"Budget on Track","OverSpending")

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-02-11T15:35:02+00:00

    The -$24,757.44 comes from a calculation of values in a different sheet within the workbook: ='Budget 2016'!F7-(('Budget 2016'!M15*2)+(('Budget 2016'!M15*96%)*2)+('Budget 2016'!M15*94%)*8)

    I tried using =IF(VALUE(N40)>N35,"Budget on Track","Over Spending"), but unfortunately it still gave me "Budget on Track".

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2016-02-11T15:23:27+00:00

    Where are you getting the -$24,757.44?  If you are downloading it, there is a chance that it is a string, and not an actual number.  You could try this:

    =IF(VALUE(N40)>N35,"Budget on Track","OverSpending")

    Was this answer helpful?

    0 comments No comments