View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Glenn Glenn is offline
external usenet poster
 
Posts: 1,240
Default Conditional Result based on Anniversary Date

GregFIJI wrote:
I have a list of employee anniversary dates:
6/18/2003
1/28/1991
5/9/2005
12/14/2007
10/18/2006
4/1/2008
11/16/2004
Based on this list, if the anniversary month and day is reached I need 40
(hours) to be returned, otherwise 0 (hours). I dont care about the year, but
I need to keep the dates in this format.



=IF(OR(MONTH(TODAY())MONTH(A1),AND(MONTH(TODAY()) =MONTH(A1),DAY(TODAY())=DAY(A1))),40,0)