IF Statements

christal

New Member
Joined
Apr 7, 2002
Messages
45
Can anyone help me with this problem?
I am trying to put together an "IF" statement which says:

If the due date is< today's date = Late

If the due date is = today's date = Due

If the due date is less 2 days than today's date = AT RISK

Otherwise = Pending

The IF statement I tried to put together, is correct all the way up to "AT RISK". Can anyone tell me how to do 2 days less.

F4 = Due Date
F2 = Today's date

Your help would be greatly appreciated!! :biggrin:

Thanks!
This message was edited by christal on 2002-05-09 11:40
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:

"=IF(F4<TODAY(),"Late",IF(F4=TODAY(),"Due",IF(AND(F4>TODAY(),F4<TODAY()+3),"At Risk","Pending")))"

_________________
It's never too late to learn something new.

Ricky
This message was edited by Ricky Morris on 2002-05-09 11:47
 
Upvote 0
Maybe there's a shorter way to do this, but here's one solution:

IF(F4< F2,"Late",IF(F4=F2,"Due",IF(F4=(F2+1),"At Risk",IF(F4=(F2+2),"At Risk","Pending"))))
This message was edited by phillycarol on 2002-05-09 11:48
This message was edited by phillycarol on 2002-05-09 11:49
 
Upvote 0
=VLOOKUP(F4-TODAY(),{-9E+307,"Late";0,"Due";1,"AT RISK";2,"Pending"},2)

I'm a little uncertain of your "AT RISK" definition. Let me know if I need to refine my formula to fit your needs.
This message was edited by Mark W. on 2002-05-09 12:04
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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