Date calculation using NOW() causing Automation Error

pizzaboy

Board Regular
Joined
Mar 23, 2015
Messages
56
Office Version
  1. 2019
Platform
  1. Windows
I'm performing a Date calculation on a table column.

Any ideas why this is causing an Automation error?

Code:
=IF([@DATE]>NOW(),"X","")

When I stop the debugger and allow the worksheet to re-calculate the formula, everything works as should...

Saving the worksheet without this calculation resolves the error.


Any help would be greatly appreciated.

Cheers
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try TODAY() instead of NOW() (the latter gives actual date and time which fluctuates constantly)
 
Upvote 0
No luck arthurbr

Just referencing TODAY() or NOW() causes the error. I googled that this was a regional conflict within Windows. I've tried switching the region to US and set the time to US, both without success...
 
Upvote 0
Wow! You won't believe the workaround to fix this issue!

Instead of using Now() on the excel worksheet, I created a vba function to use Now() via code to do the exact same thing!

Considering the underlying date value is the same (its stored as a number) regardless of the formatting used - this is a pretty ***-ey way of MS to code Excel like this - just because I am using a US copy of Office, it doesn't mean I am from or living or writing the spreadsheet for someone in the US!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,815
Messages
6,127,035
Members
449,355
Latest member
g wiggle

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