Determine if date is expired (if statement)

adorlytanglao

New Member
Joined
Jun 23, 2013
Messages
46
I have a list of employee working in our company with expiry dates of their national ID. I already tried a nested if statement and its giving two output Expired and Valid. My one issue is that when it reaches to an empty cell its says "Expired", even though I'm expecting it to be empty also. Please let me know how can i upload the file. Or i think we can just use the same starting cell where the date is entered "F3". So im currently using this code:

Code:
=IF(F3="", "", IF(F3<today(), "expired",="" "valid"))[="" code]<="" html=""></today(),>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Its deleting the code after the less than symbol


=IF(F3="", "", IF(F3[lessthansymbol]TODAY(), "Expired", "Valid"))

Can you tell me also how to fix that.<today(), "expired",="" "valid"))<today(),="" "valid"))[="" quote]<="" html=""></today(),>
 
Last edited:
Upvote 0
check if your calculation is set to automatic

FORMULAS Menu -> Calculation Option -> AUto..
 
Upvote 0
First time I am able to help someone. Not sure if this helps but try:

Code:
=IF(F3="","",IF(F3[I][lessthansign][/I]TODAY(),"EXPIRED","VALID"))
<today(),"expired","valid"))[ code]<="" html=""></today(),"expired","valid"))[>
 
Upvote 0
I don't know what im doing before but the code bm604 gave me worked but its the same with the one i posted but it's not working. Anyways, thank you for responding. I still want to know how to fixed the issue about the code being deleted after the lessthansign.
 
Upvote 0
They do look to be the exact same. I didn't even notice! Anyways glad to have helped... if I did!

I am not sure about the less than sign either... it cut the code off like in your original message.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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