How to Return TRUE or FALSE When Today's Date Contains an X in Excel
Question details
The user wants to check a column corresponding to today's date to see if it contains a specific value (like 'x') and return a TRUE or FALSE result.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking daily status, attendance, or conditional formatting where columns represent dates and an 'x' marks a specific completion or condition.
- Observed behavior
- Needs a dynamic formula to automatically locate the column headed by today's date and evaluate its contents for the presence of an 'x'.
Ensure your dates in the header row are formatted as valid date values, not text, so the TODAY() function can correctly match them against your system's current date.
Use INDEX, XMATCH, and OR Functions
Combine these functions to dynamically locate the column for today's date and check if any cell within it contains an "x".
This approach uses XMATCH to find which column holds today's date. INDEX then retrieves the entire column of data, and the OR function checks if the specific character 'x' exists anywhere in that retrieved column.
Click on the cell where you want the TRUE or FALSE status result to appear (e.g., cell AB1).
Type the following formula into the formula bar: =OR(INDEX(A3:PN77,0,XMATCH(TODAY(),A3:PN3))="x")
Replace 'A3:PN77' with the actual range of your entire data table. Replace 'A3:PN3' with the specific row range that contains your date headers.
Press Enter. The cell will now display TRUE if an 'x' is found in today's column, and FALSE if it is not.

Master Advanced Formulas in WPS Spreadsheet
WPS Spreadsheet supports all the advanced lookup and reference functions you need, including XMATCH, INDEX, and complex conditional logic, making it easy to track daily statuses and manage complex data.
- 1. Open your workbook: Launch WPS Spreadsheet and open your daily tracking document.
- 2. Select the result cell: Click on the target cell where the status should be displayed.
- 3. Input the formula: Type the =OR(INDEX(...)) formula directly into the formula bar at the top.
- 4. Calculate instantly: Press Enter to instantly calculate the TRUE or FALSE result, which will update dynamically each day.

Frequently Asked Questions
Why is the XMATCH function returning an #N/A error?
XMATCH returns an #N/A error if today's date does not exist in your header row. Ensure your header dates include today's exact date and are properly formatted as dates, rather than text strings.
Can I use this formula for conditional formatting?
Yes. You can apply this formula in the Conditional Formatting rule manager by selecting 'Use a formula to determine which cells to format'. This allows you to automatically highlight cells or change background colors based on the TRUE/FALSE result.
How do I check for a different word instead of 'x'?
Simply replace the "x" in the formula with your desired character or text string. For example, use =OR(INDEX(...)="Completed"). Make sure the text you are looking for is enclosed in double quotation marks.
Is there an alternative to XMATCH if I'm using an older spreadsheet version?
Yes, if your software version does not support XMATCH, you can use the traditional MATCH function instead. The formula would look like: =OR(INDEX(A3:PN77,0,MATCH(TODAY(),A3:PN3,0))="x"). The '0' at the end of MATCH ensures it looks for an exact match.




