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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Congratulations.

Does this work as expected?

=IF(TODAY()>DATEVALUE("23/3/09"),A1,B1)
 
Upvote 0
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,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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