Fix Excel IF and TODAY Date Formulas Not Calculating
Question details
The user needs to resolve an issue where IF and TODAY formulas fail to calculate or return incorrect results due to lookup dates being stored as text.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Using IF and TODAY functions to compare dates or perform date-based calculations in a spreadsheet.
- Observed behavior
- Formulas produce incorrect results because the referenced date cells are stored as text strings (often indicated by left-aligned data) instead of valid date serial numbers.
Ensure your workbook calculation options are set to Automatic. Identify the specific columns containing the dates referenced by your IF and TODAY formulas.
Convert Text Dates to Real Dates using Text to Columns
Verify if dates are stored as text and convert them into standard date serial numbers so your formulas can read them correctly.
When dates are imported from external sources or entered improperly, the spreadsheet treats them as text strings. Functions like TODAY() generate a serial number, which cannot be logically compared to a text string, causing your IF formulas to fail or return inaccurate results.
Click an empty cell and type =ISNUMBER(M2) (replace M2 with your actual date cell). If the result is FALSE, the date is stored as text.
Highlight the entire column containing the text-formatted dates (e.g., column M).
Navigate to the Data tab on the top ribbon and click the Text to Columns button.
Keep the default settings (Delimited) for Step 1 and Step 2 of the wizard, clicking Next for each.
In Step 3, choose Date under the 'Column data format' section. Select the appropriate date structure (e.g., MDY for Month-Day-Year) from the dropdown, then click Finish.
Repeat this process for any other referenced date columns (like column I). Once converted, your IF and TODAY formulas will recalculate correctly.

Fix Date Formula Errors Easily with WPS Spreadsheet
WPS Spreadsheet provides robust data formatting tools and complete compatibility with Excel functions like IF and TODAY, allowing you to troubleshoot and correct formula errors effortlessly.
- 1. Open your file: Launch WPS Spreadsheet and open the workbook containing the formula errors.
- 2. Highlight the data: Select the column with the left-aligned dates that are stored as text.
- 3. Access Text to Columns: Go to the Data tab and select Text to Columns.
- 4. Convert the format: Choose the Date format in the final step of the wizard to instantly convert the text to serial numbers.
- 5. Verify calculations: Watch your IF and TODAY formulas automatically update with the correct logical results.

Frequently Asked Questions
Why does my Excel date align to the left automatically?
By default, spreadsheet software aligns text to the left and numerical values (including valid dates) to the right. A left-aligned date strongly indicates it is stored as a text string rather than a true date serial number.
Can I use a function to convert text dates instead of Text to Columns?
Yes, you can use the =DATEVALUE(A2) or =VALUE(A2) function in a helper column to convert a text-formatted date into a serial number, and then format that new column as a Date.
Why is my =TODAY() function not updating to the current date?
If the =TODAY() formula doesn't update, your workbook calculation options might be set to Manual. Go to the Formulas tab, click Calculation Options, and select Automatic.
How do I fix the IF formula returning an error after converting dates?
Double-check your IF formula syntax to ensure it correctly references the converted date cells. If you are comparing a cell against TODAY(), ensure it is written as IF(A2<TODAY(), "Past", "Future") without quotation marks around the TODAY() function.




