I have data like:
I need to locate (get row numbers) for cells starting with the letter A.
My current approach is to use a "helper" column. In B1 I enter:
=IF(LEFT(A1)="A",1,"")
and in B2 I enter:
=IF(LEFT(A2)="A",MAX($B$1:B1)+1,"")
and copy down. This identifies the rows of interest. Finally in C1 I use:
=IFERROR(MATCH(ROWS($1:1),$B$1:$B$23,0),"")
and copy down.
My goal is to eliminate the "helper" column.
The only two options I see are:
- use an autofilter
- use a VBA UDF
The autofilter approach is bad because the filter would have to be re-run whenever the data is refreshed. The UDF approach bad because the sheet must work in a VBA-free environment.
Is there any kind of formula or array formula that can get the row numbers or am I stuck with the "helper"column ??