If Statement/Name Error

erikakelsh

New Member
Joined
Jul 19, 2011
Messages
10
I have a list of dates and want to be able to determine if they are valid or expired using an if statement.

I am using this formula: =IF(P18>TODAY,"VALID","EXP")

But the NAME error keeps showing up.

Any insight on this would be great. Thanks!

-Erika
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You need to use

TODAY()

instead of

TODAY

Please have a look at the list of functions you can use. You will all details there.
 
Upvote 0
Great! Thanks, it worked perfectly.

Do you know what I am doing wrong when I insert this IF statement by chance?

=IF(P18="UNKNOWN","UNKNOWN",=if(P18>TODAY(),"VALID","EXP"))

Thanks again!
 
Upvote 0
Great! Thanks, it worked perfectly.

Do you know what I am doing wrong when I insert this IF statement by chance?

=IF(P18="UNKNOWN","UNKNOWN",=if(P18>TODAY(),"VALID","EXP"))

Thanks again!
Try it like this...

=IF(P18="UNKNOWN","UNKNOWN",IF(P18>TODAY(),"VALID","EXP"))
 
Upvote 0
Erika,
The parenthesis (brackets) are missing in the TODAY function.You need to change the word TODAY and make it a function TODAY(). It will work.

Hope that helps.

Regards,
Prasad


I have a list of dates and want to be able to determine if they are valid or expired using an if statement.

I am using this formula: =IF(P18>TODAY,"VALID","EXP")

But the NAME error keeps showing up.

Any insight on this would be great. Thanks!

-Erika
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,949
Latest member
Dupuhini

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