View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid vezerid is offline
external usenet poster
 
Posts: 751
Default Count Saturdays in a List

{=SUM(IF((WEEKDAY(array1,2)=6),1,0))}

or

{=SUM(IF((WEEKDAY(array1,1)=7),1,0))}

HTH
Kostis Vezerides


H wrote:
Hi,

I need to count the number of Saturdays in an array of dates. I used the
following approach, which didn't work. Does anyone have another idea?

{=SUM(IF((WEEKDAY(array1,2)=7),1,0))}

Thanks!