Phil Payne
Board Regular
- Joined
- May 17, 2013
- Messages
- 131
- Office Version
- 365
- Platform
- Windows
Is there a way, in a formula, to use a variable that returns the last cell?
I use countif a lot and find that changing each range to accommodate added rows is arduous and error prone!
For example I use the following to count the number of instances where the cell contents are greater than zero in a column of specified length
=COUNTIF(C9:C1543,">0")
Is there a way to avoid manually changeing "1543" to the new last row number, something like =COUNTIF(C9:C&[lastcell],">0") ?
I want to do this using a formula rather than VBA.
Thanks.
I use countif a lot and find that changing each range to accommodate added rows is arduous and error prone!
For example I use the following to count the number of instances where the cell contents are greater than zero in a column of specified length
=COUNTIF(C9:C1543,">0")
Is there a way to avoid manually changeing "1543" to the new last row number, something like =COUNTIF(C9:C&[lastcell],">0") ?
I want to do this using a formula rather than VBA.
Thanks.