I have data based on date and day over three years. however, I want to do an average of the data for a particular date over the three years and if that date is a weekday for all three years it averages for all the years and if not, it only averages for the number of times that date falls on a weekday for those previous three years. What excel formula can I use to do that automatically?