Date within IF Function

dariuzthepole

Board Regular
Joined
Jul 23, 2008
Messages
111
Hi All,

I'm looking to reference a particular cell, depending on a date. I presumed the syntax would be along the lines of...

=IF(date<23/03/2009,A1,B1)

...but I can't figure it out. I've tried replacing DATE with TODAY also.

Basically this is for budgeting purposes. My girlfriend is pregnant (I'm gonna be a daddy!) and she will earn differing amounts (statutory maternity pay etc) depending on dates, so I'm looking to include this in a basic budget spreadsheet I already have.

Any help you could give me would be much appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Congratulations.

Does this work as expected?

=IF(TODAY()>DATEVALUE("23/3/09"),A1,B1)
 
Upvote 0

Willem!

Board Regular
Joined
Mar 6, 2009
Messages
139
Hi,

Is 'date' a named cell? A simple IF-statement works just fine for me;

(e.g.)

=IF(NOW()>12/1/2009,A1,B4)

Can you clarify your problem?
 
Upvote 0

Forum statistics

Threads
1,190,704
Messages
5,982,405
Members
439,777
Latest member
daleEH

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