I have dates for last 2 years in column A including weekends. I want to average all of May-2022 weekdays only for values in column B. I input May-2022 as date format in C3 to return avg of May.
I then want to have all months showing with links like in C3. I have the following two formulas which get very close but don't quite work.
=AVERAGE(IF(WEEKDAY(Sheet1!A2:A500,2)={1,2,3,4,5},Sheet1!B2:B500))
=AVERAGEIFS(Sheet1!B2:B500,Sheet1!A2:A500,">="&Sheet1!C3,Sheet1!A2:A500,"<="&EOMONTH(Sheet1!IC3,0))
Any idea to get it to work?
Thanks
I then want to have all months showing with links like in C3. I have the following two formulas which get very close but don't quite work.
=AVERAGE(IF(WEEKDAY(Sheet1!A2:A500,2)={1,2,3,4,5},Sheet1!B2:B500))
=AVERAGEIFS(Sheet1!B2:B500,Sheet1!A2:A500,">="&Sheet1!C3,Sheet1!A2:A500,"<="&EOMONTH(Sheet1!IC3,0))
Any idea to get it to work?
Thanks