johnmpl
Board Regular
- Joined
- Jun 14, 2013
- Messages
- 237
- Office Version
- 365
- Platform
- Windows
Hi to all!
This time i want to transform data, using Power Query, from this:
<tbody>
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: center"]Company[/TD]
[TD="align: center"]Origin[/TD]
[TD="align: center"]Destiny[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: center"]AB[/TD]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: center"]AB[/TD]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]14[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]15[/TD]
[TD="align: center"]AC[/TD]
</tbody>
Into this:
<tbody>
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Cities[/TD]
[TD="bgcolor: #c0c0c0, align: center"]No. Of Destinies[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 1[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 2[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Valencia[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]Roma[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]Valencia[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Roma[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]Roma[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]Barcelona[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
I already know how to do it with formulas and vba. But I wanna know how can I get this result with Power Query. Thx in advanced for your answers. Blessings!
This time i want to transform data, using Power Query, from this:
* | A | B | C |
Barcelona | Valencia | ||
Valencia | Barcelona | ||
Madrid | Roma | ||
Roma | Madrid | ||
Barcelona | Madrid | ||
Madrid | Barcelona | ||
Barcelona | Valencia | ||
Valencia | Barcelona | ||
Madrid | Roma | ||
Roma | Madrid | ||
Barcelona | Roma | ||
Roma | Barcelona |
<tbody>
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: center"]Company[/TD]
[TD="align: center"]Origin[/TD]
[TD="align: center"]Destiny[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: center"]AA[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: center"]AB[/TD]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: center"]AB[/TD]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]14[/TD]
[TD="align: center"]AC[/TD]
[TD="bgcolor: #cacaca, align: center"]15[/TD]
[TD="align: center"]AC[/TD]
</tbody>
Into this:
* | E | F | G | H | I |
<tbody>
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Cities[/TD]
[TD="bgcolor: #c0c0c0, align: center"]No. Of Destinies[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 1[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 2[/TD]
[TD="bgcolor: #c0c0c0, align: center"]Destiny 3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Valencia[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]Roma[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: center"]Valencia[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Roma[/TD]
[TD="align: center"]Barcelona[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: center"]Roma[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Madrid[/TD]
[TD="align: center"]Barcelona[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
I already know how to do it with formulas and vba. But I wanna know how can I get this result with Power Query. Thx in advanced for your answers. Blessings!