if less than greater than

W

Wanna Learn

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2>N2,"Needs
Approval",""))) plain english - there is a discount in column L and column
N , lets say 5% . if the discount is the same or between 1 and 5 then OK
if the discount is over 5% then "Needs approval" if the cells is blank then
blank . the problem with my formula is that is the discount (in this case )
is less than 5% I get a blank instead of OK . How do I correct this ?
thanks in advance
 
J

Jacob Skaria

=IF(L2="","",IF(L2<=N2,"OK",IF(L2>N2,"Needs Approval","")))

If this post helps click Yes
 
E

Eduardo

Hi
Try

=IF(AND(L2<5,N2<5),"",IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2>N2,"Needs Approval"))))
 
W

Wanna Learn

Thank you Jacob. this is good. But I just noticed that some cells in column
N instead of a discount have a comment. there are several diffrent comments
such as See Manager, discontinued etc etc. So I need to add that if the cell
has text " Needs approval" Again thank you
 

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

IF Function 2
Greater and less than 4
IF AND 1
conditional formatting formula not working 4
Automatically change ranges when copying formula 7
Loop 1
Time punch & hours calculations 1
Blank Cell Oddity 2

Top