lincolnshep
New Member
- Joined
- Nov 1, 2010
- Messages
- 9
Hi,
I'm trying to find the row number of the last cell in an array that is equal to zero but is not blank. My array is one column wide and 38 rows deep (K6:K43). The top 1 to x rows will always have a value (0, 3, 5 or 7) and the bottom x+1 to 38 rows will always be blank.
I've tried:
{=MAX(IF(K6:K43=0,ROW(K6:K43)))} : this returns 43 (which suggests it's counting the blanks as zero)
{=MAX(IF(AND(K6:K43=0,K6:K43<>""),ROW(K6:K43)))} : this returns 0
I'm obviously missing something (I'm quite new to array formulae) so any help would be greatly appreciated.
Thanks and regards,
Shep
I'm trying to find the row number of the last cell in an array that is equal to zero but is not blank. My array is one column wide and 38 rows deep (K6:K43). The top 1 to x rows will always have a value (0, 3, 5 or 7) and the bottom x+1 to 38 rows will always be blank.
I've tried:
{=MAX(IF(K6:K43=0,ROW(K6:K43)))} : this returns 43 (which suggests it's counting the blanks as zero)
{=MAX(IF(AND(K6:K43=0,K6:K43<>""),ROW(K6:K43)))} : this returns 0
I'm obviously missing something (I'm quite new to array formulae) so any help would be greatly appreciated.
Thanks and regards,
Shep