Transpose row to column in Excel and Google Sheets

{=TRANSPOSE(A2:A3)} // doesn't ignore blanks

{=TRANSPOSE(FILTER(A2:A6, A2:A6<>""))} // ignore blanks

A2:A3 & A2:A6 = Ranges

ArrayFormula use "Ctrl+Shift+Enter" for both formulas

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.