2

I have this formula to split a column into two columns:

=ArrayFormula(
IFERROR(HLOOKUP(1,{1;**COLUMN TO DIVIDE**},
(ROW(A:A)+1)*2-TRANSPOSE(sort(ROW(A1:A2)+0,1,0)))))

I would like to know if there is a better way to do this and if there is a way to create one formula that can be used to easily define when I wanted to split one column into two, three, four, five or more columns.

I couldn't create a very concrete way to split into more columns than two. Failures always occur.

Link to spreadsheet: https://docs.google.com/spreadsheets/d/1iUX01lsfrhq7OSMgSg-QZrWL7wMijqpK03uneQZgP3g/edit?usp=sharing

player0
  • 124,011
  • 12
  • 67
  • 124
Digital Farmer
  • 1,705
  • 5
  • 17
  • 67

1 Answers1

1

maybe this will fit your needs:

={FILTER(A2:A, MOD(ROW(A2:A), 2)=0), FILTER(A2:A, NOT(MOD(ROW(A2:A), 2)=0))}

0

player0
  • 124,011
  • 12
  • 67
  • 124