Date Comparison

ldoodle

New Member
Joined
Mar 2, 2010
Messages
37
Hey,

I use this formula: =IF(TODAY()>=B3,1,0)

Only B3 contains a formula: =CONCATENATE(INT(RIGHT(Summary!$I$1,4)),"-05-01")
which causes the first formula to return 0. The calculated date in B3, in this example, is 2014-05-01. Today's date is clearly greater than this so should return 1.

If I manually type 2014-05-01 into cell B3 it works as expected. Do Excel functions read the formula, or the actual value calculated by the formula? This 'problem' suggests the former.

How can I fix this?

Thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Well that was easy. Why is it always the case that you work it out right after posting:

=IF(TODAY()>=DATEVALUE(B3),1,0)
 
Upvote 0

Forum statistics

Threads
1,207,011
Messages
6,076,143
Members
446,187
Latest member
LMill

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