Hi all,
So let's say my data looks like this:
Date
6/1/2015
6/1/2015
6/1/2015
6/1/2015
6/2/2015
6/2/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/4/2015
6/4/2015
Where the top date is in cell A2 and the last date is in cell A15, in a sheet called "Written".
In a separate sheet within the workbook, I'd like to use a countifs formula for each date, but within the formula rather than defining the range as "Written!A2:A15" I'd like to define it as the starting row for a date to the ending row for a date. So for a countifs for 6/3/2015, I'd like the range to be defined as A7:A12. The reason is I am thinking this will speed up a slow workbook that has many countifs formulas. It's unusable now but I am hoping this will make it fast.
Now it gets a little trickier than that. Rather than manually type or select A7-A12, I'd like for when I drag down the countifs formula (to match descending dates: 6/3/2015 in the top cell, 6/4/2015 in the cell right below, ect), it automatically changes the range to include only the data set for the specific date.
I already have a formula that will give the row # that each date starts and stops at: =MATCH(6/3/2015, Written!A2:A15, 0) gives a result of 7 and =MATCH(6/3/2015+1, Written!A2:A15, 0)-1 gives a result of 12.
I just need for the numbers in the countifs formula range of A7:A12 to link to these match formulas rather than the "normal" way of linking to the Written tab's raw data.
This might seem like alot to do for no purpose but again, with many many countifs formulas and some array formulas, if they each are searching through an entire range, it seems like this is likely the cause of my slowdowns and using limited, automatically shifting ranges will help. Thanks.
So let's say my data looks like this:
Date
6/1/2015
6/1/2015
6/1/2015
6/1/2015
6/2/2015
6/2/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/3/2015
6/4/2015
6/4/2015
Where the top date is in cell A2 and the last date is in cell A15, in a sheet called "Written".
In a separate sheet within the workbook, I'd like to use a countifs formula for each date, but within the formula rather than defining the range as "Written!A2:A15" I'd like to define it as the starting row for a date to the ending row for a date. So for a countifs for 6/3/2015, I'd like the range to be defined as A7:A12. The reason is I am thinking this will speed up a slow workbook that has many countifs formulas. It's unusable now but I am hoping this will make it fast.
Now it gets a little trickier than that. Rather than manually type or select A7-A12, I'd like for when I drag down the countifs formula (to match descending dates: 6/3/2015 in the top cell, 6/4/2015 in the cell right below, ect), it automatically changes the range to include only the data set for the specific date.
I already have a formula that will give the row # that each date starts and stops at: =MATCH(6/3/2015, Written!A2:A15, 0) gives a result of 7 and =MATCH(6/3/2015+1, Written!A2:A15, 0)-1 gives a result of 12.
I just need for the numbers in the countifs formula range of A7:A12 to link to these match formulas rather than the "normal" way of linking to the Written tab's raw data.
This might seem like alot to do for no purpose but again, with many many countifs formulas and some array formulas, if they each are searching through an entire range, it seems like this is likely the cause of my slowdowns and using limited, automatically shifting ranges will help. Thanks.