Excel: If Date =, then enter a value

Solved/Closed
JerrySD Posts 2 Registration date Thursday 12 November 2015 Status Member Last seen 12 November 2015 - 12 Nov 2015 à 16:53
BrianGreen Posts 1005 Registration date Saturday 17 January 2015 Status Contributor Last seen 30 September 2021 - 13 Nov 2015 à 12:42
I am using this formula and it works well: =IF(A8=DATE(2015,3,27),"1","--")

How do I now create a string to check a number of dates (company holidays)?
Related:

2 responses

BrianGreen Posts 1005 Registration date Saturday 17 January 2015 Status Contributor Last seen 30 September 2021 149
12 Nov 2015 à 17:44
Would changing the enquiry help here ... instead of asking for a specific date then how about asking for ANY date? The expression then becomes...
=IF(ISNUMBER(A8),"1","0")
You then need to format cell A8 as a date.
JerrySD Posts 2 Registration date Thursday 12 November 2015 Status Member Last seen 12 November 2015
12 Nov 2015 à 18:10
Thank you for the quick reply. I am so sorry I was unclear when I mentioned "company holidays". Since these are specific dates, "ANY" date will not work.