Please Help, Formula Needed

bksparkz

New Member
Joined
Mar 20, 2014
Messages
36
Good afternoon all,
I am in need of some help. I am looking to create a formula for the following.

The folrmula is going into cell B4
if N4 = N then cell should be blank.
If N4 = Y, and if S4 is <25 days from todaydate leave cell blank ""
If N4 = Y, and if S4 Date is 25-35 (>24,<35) days from todaydate cell should say low
If N4 = Y, and if S4 Date is >34 days from todaydate cell should say High


Thank You all in advance for any help
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Code:
=if(N4="N","",if(and(N4="Y",S4-today()<25),"",if(and(N4="Y",S4-today()>24,S4-today()<35)),"Low",if(and(N4="Y",S4-today()>34,"High",""))))

I am not sure about S4-today() though
 
Upvote 0
I think this does what you want. I'm assuming you want 0-24 = blank; 25-34=low; >34=High.
=IF(N4="N","",LOOKUP(TODAY()-S4,{0;25;34;35},{" ";"low";"low";"High"}))
 
Upvote 0
Thank You so much. That worked great. I really appreciate it. Is it possible to add one more thing? I forget to mention also that if N4 is blank then B4 is blank as well.

Thank YOu
 
Upvote 0
Thank You so much. That worked great. I really appreciate it. Is it possible to add one more thing? I forget to mention also that if N4 is blank then B4 is blank as well.

Thank YOu
Just add an OR to the formula
=IF(OR(N4="N",N4=""),"",LOOKUP(TODAY()-S4,{0;25;34;35},{" ";"low";"low";"High"}))
 
Upvote 0

Forum statistics

Threads
1,216,110
Messages
6,128,890
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top