When Office stops working as expected, start with the shortest official checks before you reinstall anything.
Problem Description: Countifs Looking At Dates
I have a "data" sheet containing column C, which is a range of non-successive dates (in ascending date order) I have a "summary" sheet with various analyses of the data I have been trying to create a formula to count the number of cells of dates in a variable range I am assuming that there is some variation of COUNTIFS where I can specify references to the two dates The dates aren't fixed , and 3 different formulae will need to use 3 fixed variances. =COUNTIF(Log!$C$2:$C$83,AND("<="&AR2,"<="&AG2)) doesn’t work….
Quick Answer for Resolving Formula Errors
To count cells with dates between two specified dates in Excel, use the COUNTIFS function with separate conditions for each date limit.
Likely Causes Behind Formula Errors
The Microsoft account or license context may not match the purchase or device.
Cached credentials, outdated builds, or damaged local components can trigger formula errors.
A file-specific corruption or add-in conflict can mimic a broader application failure.
Recommended Solution: Repairing Office Startup Issues
When to use this: Apply these steps when the symptoms match and you can access the relevant Microsoft account or administrator.
The correct formula is =COUNTIFS(Log!$C$2:$C$83, ">=" & AR2, Log!$C$2:$C$83, "<=" & AG2).
This counts all dates in the range Log!$C$2:$C$83 that fall between the dates in cells AR2 (lower limit) and AG2 (upper limit), inclusive.
Ensure that AR2 and AG2 are formatted as dates in Excel for the formula to work correctly.
Alternative Solutions for When Office Still Fails
Retry the Microsoft-side steps after restarting the app and device.
Test the same action in a private browser session or a new blank file to isolate account vs file issues.
Capture exact error text and screenshots before contacting Microsoft Support or your administrator.
Working with WPS Office: WPS Office for Local Document Work

WPS Office cannot replace Microsoft account, activation, or cloud fixes for this scenario. It remains one of the best free Microsoft Office-compatible alternatives for opening and editing local files.
Download and install WPS Office from the official website.
Open local Word, Excel, PowerPoint, or PDF files in the matching WPS app.
Save a working copy locally while Microsoft-side issues are resolved.
Return to Microsoft Office after the primary fix succeeds.
If you need a practical local workspace in the meantime, try WPS Office.
Prevention Tips for Safer Excel Habits
Keep one primary Microsoft account for subscriptions and Office sign-in.
Install updates for Office and Windows before retrying failed workflows.
Back up important files before repair, reset, or reinstall actions.
Document exact error messages before the next troubleshooting attempt.
FAQs About Common Formula Errors Answers
Can WPS Office fix this formula errors issue directly? Only when the WPS steps match the formatting or file task. Account, activation, and cloud issues stay on the Microsoft side.
Should I reinstall Office before trying these steps? Not first. Confirm account, license, and the exact error before reinstalling.
What should I send to Microsoft Support? The affected account email, device type, Office version, exact error text, and screenshots with personal data hidden.




