How to Fix TIMEVALUE, DATEVALUE, and INDEX MATCH #VALUE! Errors in Excel
Question details
Users need to resolve #VALUE! errors generated by TIMEVALUE, DATEVALUE, and INDEX MATCH formulas in downloaded workbooks.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Opening downloaded Excel workbooks containing date and time formulas on different computers with varying language or regional setups.
- Observed behavior
- Formulas return a #VALUE! error despite functioning properly on other computers, typically due to mismatched regional date settings or incorrect text format codes.
Before troubleshooting, check whether your imported dates are actual numeric date-time values or text strings, as this determines which formula approach is required.
Use the INT Function for Numeric Date-Time Values
If your data is already stored as numeric date-time values, avoid using complex DATEVALUE formulas. You can extract the date portion simply by using the INT function.
Formulas can sometimes be unnecessarily complex. When a date-time cell is already recognized by the system as a numeric value, functions like DATEVALUE are redundant and can cause errors.
Click on an empty cell where you want the extracted date to appear.
Type =INT(C2) (assuming C2 is the cell containing the original date-time value).
Press Enter to calculate the result, which will strip the time and leave only the date's integer value.
Right-click the calculated cell, select Format Cells, and apply your preferred Date format.

Correct Date Format Codes for Regional Settings
When passing text to the TEXT function, ensure you use the date and time format characters specific to your installed system language.
Resolve Date Formula Errors Easily with WPS Spreadsheet
WPS Office provides highly compatible spreadsheet tools that flawlessly handle Microsoft Excel formulas, date formats, and regional settings. With built-in error checking, managing DATEVALUE and INDEX MATCH errors is quick and straightforward.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file displaying the #VALUE! errors.
- 2. Inspect the error: Click the warning icon next to the cell with the error to view details about the formula issue.
- 3. Format properly: Use the Format Cells dialog (Ctrl+1) to ensure the locale and date formats are set correctly for your data.

Frequently Asked Questions
Why do my formulas work on one computer but return #VALUE! on another?
This usually happens because the computers have different regional settings. Date formats (like dd/mm/yyyy vs mm/dd/yyyy) or language-specific format codes within the TEXT function may not be recognized by the installation on the second computer.
How can I quickly check if a cell is text or a numeric date?
You can use the =ISNUMBER(A1) formula. If it returns TRUE, the software reads it as a numeric date. Alternatively, widen the column; by default, text aligns to the left edge while numeric values align to the right edge.
How do I fix INDEX MATCH #VALUE! errors related to dates?
A #VALUE! error in INDEX MATCH often means the lookup value and lookup array have mismatched data types (e.g., one is text, the other is a number). Ensure both use the same format by converting text dates using the DATEVALUE function or converting numeric dates using the TEXT function.




