I have a spreadsheet for working weekly on-call and I'm trying to create a formula for counting how many times work was carried out on a weekend between 17:00 and 19:00 hours.
I tried something like this, which is not working:
=COUNTIFS(Oncall[Date],WEEKDAY(2>=6),
Oncall[Time Start],">=17:00",Oncall[Time Start],"<=19:00")
Oncall
is the name of the spreadsheet, thanks.
You can't use the
WEEKDAY
criterion like that inCOUNTIFS
, try usingSUMPRODUCT
function like this:=SUMPRODUCT((WEEKDAY(Oncall[Date],2)>=6)*(Oncall[Time Start]>="17:00"+0)*(Oncall[Time Start]<="19:00"+0))