formula

Roman12

Board Regular
Joined
Jun 10, 2008
Messages
117
Hi there

I have the following formula that I usually use in my sheet.

=IF(W3<TODAY()-14;"expired";"approved")

Unfortunately, I have to go back to the 28-12-2008 to recreate the data. Am I able to put in the 28-12-2008 instead of TODAY? I could not figure it out.

Thank you for your help

Roman
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi, your formula is missing from your post.

In any case, I would put your date in another cell and refer to that cell in your formula.
 
Upvote 0
Hi Roman

If I understood correctly you want to replace Today() in the formula

=IF(W3<TODAY()-14;"expired";"approved")

by the date 28-12-2008

Try:

=IF(W3<DATE(2008,12,28)-14;"expired";"approved")

or

=IF(W3<"2008-12-28"-14;"expired";"approved")

or enter the date in another cell and use it to reference the data, like:

=IF(W3<A1-14;"expired";"approved")
 
Upvote 0
Hi again

I tried your idea, but unfortunately an inconsistent formula is created.

IF(W3<TODAY()-14;"expired";"approved")

new formula after your suggestion
IF(W4<$AW$1;"expired";"approved")

Do you have any other idea?

roman
 
Upvote 0
Hi pgc

You have got many possibilities. Thank you very much for your help. It works. :)

Have a nice day
roman
 
Upvote 0

Forum statistics

Threads
1,213,521
Messages
6,114,104
Members
448,548
Latest member
harryls

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