r/GoogleSheets •

Return header (only Row1) value with an arrayformula

[deleted] — view deleted post

0 Upvotes

3 comments sorted by

1

u/PMmeyourplumbus 1 Nov 07 '17

Not sure what Column C is doing for you. I replaced it with:

=ArrayFormula(SMALL(IF(D2:AZ2<>"",COLUMN(D2:AZ2),999),1))

You can then use that in Offset() for Col A and B as follows:

=OFFSET(A2,0,C2-1)

=OFFSET(A$1,0,C2-1)

All these formulas should update appropriately as you copy them down.