I have two columns A2:B
with empty and non empty cells, I want to achive a similar result to the formula in D2
but refrence the range A2:B
once in the formula. =Formula(Range)
=FILTER(FLATTEN(A2:B),FLATTEN(A2:B)<>"")
CodePudding user response:
Use
=QUERY(FLATTEN(A2:B), " where Col1 is not null ",0)