Transposing like all into the same column

chilly_bang

Board Regular
Joined
Jun 17, 2016
Messages
57
I have a table like

[TABLE="class: tg"]
<tbody>[TR]
[TH="class: tg-0lax"]date[/TH]
[TH="class: tg-0lax"]organic[/TH]
[TH="class: tg-0lax"]referrer[/TH]
[TH="class: tg-0lax"]direct[/TH]
[/TR]
[TR]
[TD="class: tg-0lax"]01.01.2019[/TD]
[TD="class: tg-0lax"]12345[/TD]
[TD="class: tg-0lax"]123[/TD]
[TD="class: tg-0lax"]23[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]25.01.2019[/TD]
[TD="class: tg-0lax"]23456[/TD]
[TD="class: tg-0lax"]234[/TD]
[TD="class: tg-0lax"]34[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]03.03.2019[/TD]
[TD="class: tg-0lax"]34567[/TD]
[TD="class: tg-0lax"]345[/TD]
[TD="class: tg-0lax"]56[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]15.04.2019[/TD]
[TD="class: tg-0lax"]45678[/TD]
[TD="class: tg-0lax"]456[/TD]
[TD="class: tg-0lax"]78[/TD]
[/TR]
</tbody>[/TABLE]

I want to get the following output:

[TABLE="class: tg"]
<tbody>[TR]
[TH="class: tg-0lax"]type[/TH]
[TH="class: tg-0lax"]amount[/TH]
[TH="class: tg-0lax"]date[/TH]
[/TR]
[TR]
[TD="class: tg-0lax"]organic[/TD]
[TD="class: tg-0lax"]12345[/TD]
[TD="class: tg-0lax"]01.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]referrer[/TD]
[TD="class: tg-0lax"]123[/TD]
[TD="class: tg-0lax"]01.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]direct[/TD]
[TD="class: tg-0lax"]23[/TD]
[TD="class: tg-0lax"]01.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]organic[/TD]
[TD="class: tg-0lax"]23456[/TD]
[TD="class: tg-0lax"]25.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]referrer[/TD]
[TD="class: tg-0lax"]234[/TD]
[TD="class: tg-0lax"]25.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]direct[/TD]
[TD="class: tg-0lax"]34[/TD]
[TD="class: tg-0lax"]25.01.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]organic[/TD]
[TD="class: tg-0lax"]34567[/TD]
[TD="class: tg-0lax"]03.03.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]referrer[/TD]
[TD="class: tg-0lax"]345[/TD]
[TD="class: tg-0lax"]03.03.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]direct[/TD]
[TD="class: tg-0lax"]56[/TD]
[TD="class: tg-0lax"]03.03.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]organic[/TD]
[TD="class: tg-0lax"]45678[/TD]
[TD="class: tg-0lax"]15.04.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]referrer[/TD]
[TD="class: tg-0lax"]456[/TD]
[TD="class: tg-0lax"]15.04.2019[/TD]
[/TR]
[TR]
[TD="class: tg-0lax"]direct[/TD]
[TD="class: tg-0lax"]78[/TD]
[TD="class: tg-0lax"]15.04.2019[/TD]
[/TR]
</tbody>[/TABLE]

The "normal" transposing is pretty close to what i want - but not exactly, and i miss the point, how to pivot the data to get the goal...


<style type="text/css">.tg {border-collapse:collapse;border-spacing:0;}.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}.tg .tg-0lax{text-align:left;vertical-align:top}</style>
 
Last edited:
it isn't a rocket science to translate things from Excel to GSheets (in case counterparts exist)
But sometimes they don't.

I would just recommend that if you have future questions that are going the same route, to just mention this up-front (that your intention is to move to Google Sheets).
You would hate to have someone spend a lot of time creating a VBA solution for you that you can't use (and they probably won't be too happy about it either!).
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top