G Guest Aug 16, 2005 #1 Using excel, how would you count occurances of dates that fall between 2 dates? Thank you, sailingscotts
Using excel, how would you count occurances of dates that fall between 2 dates? Thank you, sailingscotts
M Max Aug 16, 2005 #2 One way ... Assuming the dates are real dates, and in A1:A100 down: try something like this in say, B1: =SUMPRODUCT((A1:A100>=DATE(2005,7,1))*(A1:A100<=DATE(2005,7,15))) which counts the # of cells within A1:A100 with dates between 1st July 2005 and 15th July 2005 (inclusive) Adapt to suit. Note that we can't use entire col references in SUMPRODUCT
One way ... Assuming the dates are real dates, and in A1:A100 down: try something like this in say, B1: =SUMPRODUCT((A1:A100>=DATE(2005,7,1))*(A1:A100<=DATE(2005,7,15))) which counts the # of cells within A1:A100 with dates between 1st July 2005 and 15th July 2005 (inclusive) Adapt to suit. Note that we can't use entire col references in SUMPRODUCT
G Guest Aug 16, 2005 #3 Thank you, Max! Max said: One way ... Assuming the dates are real dates, and in A1:A100 down: try something like this in say, B1: =SUMPRODUCT((A1:A100>=DATE(2005,7,1))*(A1:A100<=DATE(2005,7,15))) which counts the # of cells within A1:A100 with dates between 1st July 2005 and 15th July 2005 (inclusive) Adapt to suit. Note that we can't use entire col references in SUMPRODUCT Click to expand...
Thank you, Max! Max said: One way ... Assuming the dates are real dates, and in A1:A100 down: try something like this in say, B1: =SUMPRODUCT((A1:A100>=DATE(2005,7,1))*(A1:A100<=DATE(2005,7,15))) which counts the # of cells within A1:A100 with dates between 1st July 2005 and 15th July 2005 (inclusive) Adapt to suit. Note that we can't use entire col references in SUMPRODUCT Click to expand...