Thanks for reaching out.
I understand how confusing that can be. What’s happening is Excel now blocks macros in files it thinks came from the internet, and cloud-synced folders like Google Drive often carry that tag, so your VBA gets disabled. The #VALUE! error usually means the formula is hitting text instead of a real date. Here’s what I’d do: close Excel, right-click the workbook in File Explorer, go to Properties, and check Unblock if it’s there. Then reopen the file. If you use this workbook often, add your Google Drive folder as a Trusted Location in Excel under File > Options > Trust Center > Trusted Locations. Also make sure you’re opening it in the desktop app, not in a browser, because macros won’t run online. For the formula, use Evaluate Formula to see which cell turns into text and confirm those dates are actual Excel dates, not text strings.
Can you check if the Unblock option shows up and share the formula that’s throwing the error?