Forum Discussion
conditional formatting when wrong date format entered
- Aug 15, 2018
In Excel when using comparison operators like <, =, > number values are less than text values. You can use the VALUE function to convert text values to number values for number comparisons. You can use the TEXT function to convert number values to text values for text comparison.
Since dates are read as numbers in Excel. (i.e. 08/15/2018 is read as 43327) the text value of "25/12/2018" is > than the number 43327
The best way I can thing to solve your issue is to use Data Validation to ensure dates entered on your spreadsheet are in the correct date range.
Data > Data Validation > Settings > Allow: Date > Select Date Range
In Excel when using comparison operators like <, =, > number values are less than text values. You can use the VALUE function to convert text values to number values for number comparisons. You can use the TEXT function to convert number values to text values for text comparison.
Since dates are read as numbers in Excel. (i.e. 08/15/2018 is read as 43327) the text value of "25/12/2018" is > than the number 43327
The best way I can thing to solve your issue is to use Data Validation to ensure dates entered on your spreadsheet are in the correct date range.
Data > Data Validation > Settings > Allow: Date > Select Date Range
- Sarah FeeneyAug 17, 2018Copper Contributor
Thank you matt that worked :-)