Is there a way to replace the "A5000" in below formula such that formula automatically adjusts to however many rows with data, instead of limiting to 5000, but without just putting a million rows?
=COUNTA(A11:A5000)
=COUNTA(A11:A5000)
Pretty curious formula. It counts the same. Can you explain it, the part with "-10" at least?Are there likely to be empty rows in the middle of the range? If not then you could useassuming text data rather than numeric.Excel Formula:=MATCH("zzz",A:A)-10
That makes sense. And if there would likely be empty rows in the middle of the range, what formula would you go with?The approximate match looks for the last row containing data. Then you subtract 10 for the rows at the top which are not included in the count (A1:A10).
The approximate match looks for the last row containing data. Then you subtract 10 for the rows at the top which are not included in the count (A1:A10).
Tried to incorporate your solution to =SUBTOTAL(103,A11:A5000) with =SUBTOTAL(103,(MATCH("zzz",A:A)-10)) and =MATCH("zzz",SUBTOTAL(103,A:A)), but got below XL responses respectively.With empty rows, just go with what you had originally on an oversize range.
Using COUNTA on ~1million rows will take less processing effort than trying to resize the range that the formula uses.