Help with Formula

S

supersub15

I need to create a formula that compares 2 amounts in cells C9 and E9.
If the difference between the 2 amounts is equal to or greater than
1000000 (1 million), then the answer to my question is "Yes".
Otherwise, it's no. I got this far:

=IF(AND(C12="Acceptable Level",LEN(C9-E9)>=7),"Yes","No")

It works fine if the C9 is greater than E9. But if E9 > C9, then the
minus (-) is counted as a character and I get a "Yes", even though the
amount is lower than 1000000.

1. I'm not sure how to fix this problem.
2. Would it be possible to display the difference amount (C9 - E9 OR
E9 - C9) instead of the "Yes"?

Thanks for any help.

Carl
 
T

Toppers

=IF(AND(C12="Acceptable Level",C9-E9>=1000000),"Yes","No")

or

=IF(AND(C12="Acceptable Level",ABS(C9-E9)>=1000000),"Yes","No")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SUM cells with blank value 11
help with formula 2
Drag Down Formula Incorrect 3
Payment calculation 1
Help Nested If and And 2
"IF" confusion 3
Help with IF Function 3
If formula with two condition 3

Top