PCloadletter
New Member
- Joined
- May 14, 2020
- Messages
- 15
- Office Version
- 365
- 2016
- 2010
- Platform
- Windows
Hello,
I'm trying to figure out the formula for counting certain date ranges across the entire workbook. I was able to figure out the formula to do it from ONE sheet :
=SUMPRODUCT(COUNTIFS(SHEET1!Q:Q,">="&SUMMARY!C16,SHEET1!Q:Q,"<="&SUMMARY!C17))
Now I want to do it across all sheets, so I created a new sheet named "Sites" and listed all the sites from A1:A25. On my summary sheet for C16 to C17, I have the date range Jan 1st 2020 to Jun 30th, 2020.
=SUMPRODUCT(COUNTIFS(INDIRECT('Sites'!A1:A25,">="&SUMMARY!C16,'SITES'!A1:A25,"<="&SUMMARY!C17))
I thought this would work as it did for counting non-date values but I'm getting a "Too many Arguments" error.
Q:Q above would have date ranges on all my sheets.
Any help would be greatly appreciated.
Thank you in advance.
I'm trying to figure out the formula for counting certain date ranges across the entire workbook. I was able to figure out the formula to do it from ONE sheet :
=SUMPRODUCT(COUNTIFS(SHEET1!Q:Q,">="&SUMMARY!C16,SHEET1!Q:Q,"<="&SUMMARY!C17))
Now I want to do it across all sheets, so I created a new sheet named "Sites" and listed all the sites from A1:A25. On my summary sheet for C16 to C17, I have the date range Jan 1st 2020 to Jun 30th, 2020.
=SUMPRODUCT(COUNTIFS(INDIRECT('Sites'!A1:A25,">="&SUMMARY!C16,'SITES'!A1:A25,"<="&SUMMARY!C17))
I thought this would work as it did for counting non-date values but I'm getting a "Too many Arguments" error.
Q:Q above would have date ranges on all my sheets.
Any help would be greatly appreciated.
Thank you in advance.