Hey there!
I'm reviewing some customer data and trying to count the number of orders placed by customers within certain months based on the date they were acquired.
I've got the start and end dates for each month plotted out in Columns C and E in one sheet. In another sheet I've got customer IDs on each row, the number of orders they placed plotted as columns with the dates they placed them as values.
The only way I can think to get the data I want pulling through is by using an IF and COUNTIFS statement which looks as follows, but it's not working:
=IF(AND(Sheet1!B:B>=C2,Sheet1!B:B<=E2),COUNTIFS(Sheet1!B:BQ,">="&C2,Sheet1!B:BQ,"<="&E2))
Does anyone have any suggestion on formulas to get the data I'm trying to see?
Thanks!
I'm reviewing some customer data and trying to count the number of orders placed by customers within certain months based on the date they were acquired.
I've got the start and end dates for each month plotted out in Columns C and E in one sheet. In another sheet I've got customer IDs on each row, the number of orders they placed plotted as columns with the dates they placed them as values.
The only way I can think to get the data I want pulling through is by using an IF and COUNTIFS statement which looks as follows, but it's not working:
=IF(AND(Sheet1!B:B>=C2,Sheet1!B:B<=E2),COUNTIFS(Sheet1!B:BQ,">="&C2,Sheet1!B:BQ,"<="&E2))
Does anyone have any suggestion on formulas to get the data I'm trying to see?
Thanks!