You can switch rows and columns in Google Sheets by following the steps:
Select the rows you want to switch.
Right-click and select Copy.
Select the cell in which you want to switch the data.
Click-Right and Click on Paste Special, and then Paste Transposed.
You'll see now, the data has been switched.
Delete the previous or additional data and format the rows and columns according to the data size.