Conditional formula and dates

Kingmaker

New Member
Joined
Jun 29, 2017
Messages
4
Thanks for taking the time to read and think.

I'm building a financial model and have a simple date row at the top of every tab. The formatting is Date, US, Mar-12 (example).

I have a few tabs that deal with Headcount and Roll Out and in these tabs I'm using a conditional formula to return a simple 1.

It goes like this - =IF(C$2>=$B$3,1,0)

C$2 is the date field and $B$3 is a cell that contains the relevant date the individual becomes 'live' in the model.

The formula works fine at first glance, but if I delete the date in $B$3 the formula still returns a 1. So with no date in there, the conditional formatting returns the wrong answer.

This is just a big gap in my knowledge but hopefully not yours.

Thoughts?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Works where the date is correct but returns "add a date" if not, whereas I just need a 0 in the cell if it fails the test.

Also when I go backwards it doesn't revert to the correct answer, just keeps "add a date" in there.






Maybe something like this ...

=IF($B$3="","Add a Date",IF(C$2>=$B$3,1,0))

Kind regards,

Chris
 
Upvote 0

Forum statistics

Threads
1,213,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

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