Date Comparison

ldoodle

New Member
Joined
Mar 2, 2010
Messages
40
Office Version
  1. 365
Platform
  1. Windows
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
 
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

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