Forum Discussion
Clive_Rabson
May 24, 2024Brass Contributor
Comparing dates
I have a simple spreadsheet, consisting of three columns. Col A Col B Col C Date1 Date2 EarliestDate I need help with a formula in Col C (EarliestDate) that must dis...
- May 24, 2024
dscheikey
May 24, 2024Bronze Contributor
Clive_Rabson
May 24, 2024Brass Contributor
Incidentally. What would you suggest for stopping "#N/A" or "#NUM!" showing?
It is because some of the cells in the date columns have #N/A or #NUM! in them
- dscheikeyMay 24, 2024Bronze Contributor
You can use the IFERROR() function.
=IFERROR(IF(AND(Date1="",Date2=""),"none",MIN(Date1,Date2)),"none")