if or statement

bradccollins

New Member
Joined
Nov 4, 2011
Messages
29
trying to return a value for a sum of time in a set number of days, i have it working so that I can get a yes no answer, and have that conditionally formatted to return green for yes and red for no. What I would like to do is have a third option which I can format orange when the time gets within a certain window before expiring.

This is my formula so-far:

=IF(C3+C4<100,"YES","NO")

So for this I would also like a return of "NEARING" if C3+C4 is greater than 90 but less than 100.

If it has to be done in a macro then I'll forget it, but if it can be done with the formula that would be great!

Thanks in advance.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You must decide if your YES will be =100 or other value as you can not have two options
C3+C4<100
C3+C4>90 and C3+C4<100

Look at this:
=IF(AND(C3+C4>=90,C3+C4<100),"NEARING",IF(C3+C4<90,"YES","NO")

In this case YES will be returned when C3+C4<90.

Is taht what you after??
 
Upvote 0
Don't make this difficult!!
Code:
IF(C3+C4<90,"YES",IF(C3+C4<100,"NEARING","NO"))

lenze
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

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