Greg:
Array Formulas work well for this.
Note: In each case, select the entire range,
enter the formula, then press Ctl + Alt + Enter
If you have a column or partial column named "Data":
Row(Indirect("1:"&Rows(Data)))
Or for 12 consecutive numbers in one column,
select any 12 consecutive cells in a column:
Row(Indirect("1:12"))
Or if you have a row or partial row named "Data2":
Column(Indirect("1:"&Rows(Data2)))
Or for 12 consecutive numbers in one row
select any 12 consecutive cells in a row:
Column(Indirect("1:12"))
Jim