Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default if less than greater than

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default if less than greater than

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

--
Cheers
macropod
[Microsoft MVP - Word]


"Wanna Learn" wrote in message ...
Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default if less than greater than

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

If this post helps click Yes
---------------
Jacob Skaria


"Wanna Learn" wrote:

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default if less than greater than

Hi
Try

=IF(AND(L2<5,N2<5),"",IF(L2=N2,"OK",IF(L2<=N2,"",I F(L2N2,"Needs Approval"))))

"Wanna Learn" wrote:

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default if less than greater than

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
"Jacob Skaria" wrote:

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

If this post helps click Yes
---------------
Jacob Skaria


"Wanna Learn" wrote:

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default if less than greater than

Let us know the conditions for those comments..
--
If this post helps click Yes
---------------
Jacob Skaria


"Wanna Learn" wrote:

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
"Jacob Skaria" wrote:

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

If this post helps click Yes
---------------
Jacob Skaria


"Wanna Learn" wrote:

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default if less than greater than

=IF(L2="","",IF(OR(L2N2,ISTEXT(N2)),"Needs Approval,"OK"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Wanna Learn" wrote:

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
"Jacob Skaria" wrote:

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

If this post helps click Yes
---------------
Jacob Skaria


"Wanna Learn" wrote:

Hello this is my formula =IF(L2=N2,"OK",IF(L2<=N2,"",IF(L2N2,"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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Greater than # but less than # ph3nom3nalwoman Excel Worksheet Functions 3 May 26th 08 08:47 PM
Greater Than and less than HELP PLEASE Chris In Need Excel Discussion (Misc queries) 4 May 8th 08 10:56 PM
If sum greater than 12 use 12 Smudge Excel Discussion (Misc queries) 7 April 26th 07 12:22 PM
if greater then 99 then 1 if greater then 199 then two N.R. Excel Worksheet Functions 2 June 23rd 05 06:14 PM
IF greater than...IF less than....====== BenJAMMIN Excel Discussion (Misc queries) 3 May 29th 05 03:41 PM


All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"