Calculation Issues

Fix Excel IF and TODAY Date Formulas Not Calculating

Maira MehtabMaira Mehtab Nov 10, 2026 869 views

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.

How to Fix Excel IF and TODAY Date Formulas That Do Not Calculate
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.
Before you start

Ensure your workbook calculation options are set to Automatic. Identify the specific columns containing the dates referenced by your IF and TODAY formulas.

Solution 1Recommended

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.

1
Test the date format

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.

2
Select the affected column

Highlight the entire column containing the text-formatted dates (e.g., column M).

3
Open Text to Columns

Navigate to the Data tab on the top ribbon and click the Text to Columns button.

4
Proceed through the wizard

Keep the default settings (Delimited) for Step 1 and Step 2 of the wizard, clicking Next for each.

5
Set column data format to Date

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.

6
Recalculate formulas

Repeat this process for any other referenced date columns (like column I). Once converted, your IF and TODAY formulas will recalculate correctly.

Convert Text Dates to Real Dates using Text to Columns
Formulas Recalculated: Once the text strings are successfully converted to serial date values, the logical conditions in your IF and TODAY formulas will process accurately without returning errors.
WPS Spreadsheet

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. 1. Open your file: Launch WPS Spreadsheet and open the workbook containing the formula errors.
  2. 2. Highlight the data: Select the column with the left-aligned dates that are stored as text.
  3. 3. Access Text to Columns: Go to the Data tab and select Text to Columns.
  4. 4. Convert the format: Choose the Date format in the final step of the wizard to instantly convert the text to serial numbers.
  5. 5. Verify calculations: Watch your IF and TODAY formulas automatically update with the correct logical results.
Seamlessly compatible with Microsoft Excel formulas and date serial numbersBuilt-in Text to Columns wizard for quick and accurate data cleaningFree and lightweight alternative for complex data analysisNatively supports advanced date and time logic functions
QA img-9

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.