Human_doing
Board Regular
- Joined
- Feb 16, 2011
- Messages
- 137
Hi all,
I have the following formula in cell K10 of a worksheet which lets me know how many cells within range E2:311 fall between the dates in cells K2 and K3. However, there will not always be 110 rows below the header row, can anyone please tell me how I could use VBA to calculate the final row with data and add add the appropriate cell reference in place of E111?
=SUMPRODUCT((E2:E111>K2)*(E2:E111 < K3))
Many thanks
I have the following formula in cell K10 of a worksheet which lets me know how many cells within range E2:311 fall between the dates in cells K2 and K3. However, there will not always be 110 rows below the header row, can anyone please tell me how I could use VBA to calculate the final row with data and add add the appropriate cell reference in place of E111?
=SUMPRODUCT((E2:E111>K2)*(E2:E111 < K3))
Many thanks