simple nested IF statement needed

lvaumsb

New Member
Joined
Jun 5, 2002
Messages
6
Hi all,

i am trying to write an 'if' statement that basically does three things and returns three different answers.

Column A is either blank or has a date in it. If the cell is blank i want it to return "blank", if the date is > or = today() return "BOOKED" and if it is < or = today() "completed".

Just having problems getting this into one formula.

Many thanks in advance for any help,

Matt
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
=IF(ISBLANK(A1),"",IF(A1>=TODAY(),"BOOKED","COMPLETED"))
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
I'd go with Lenze's, but just for variety:
=CHOOSE(1+(LEN(A1)>0)+(A1>=TODAY()),"","complete","overdue")
 

Forum statistics

Threads
1,144,058
Messages
5,722,269
Members
422,419
Latest member
Havok390

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
Top