Transposing Dat

Bassai

New Member
Joined
Sep 3, 2012
Messages
9
Hi

Can someone help please. I have this massive document to process and I wish to move data from one column like this:

Infinity Auto Import
20 Puriri Street, New Lynn, Auckland
09 9512882
IV Cars
90 Portage Road, Otahuhu, Auckland
09 9512843

To look like this in multiple columns:

Column A Columns B Column C
Infinity Auto Import20 Puriri Street, New Lynn, Auckland 09 9512882
IV Cars



90 Portage Road, Otahuhu, Auckland 09 9512843


<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>
First column has business name
Second Column business address
Third Column Phone number

I tried the =offset command but couldnt get it to work

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
The spacing between rows is not clear in your data. Assuming the following pattern
10
2Infinity Auto Import
30
40
520 Puriri Street, New Lynn, Auckland
609 9512882
70
8IV Cars
90
100
1190 Portage Road, Otahuhu, Auckland
1209 9512843

<colgroup><col span="2"></colgroup><tbody>
</tbody>

=Indirect("A" & row()*6-10)
=indirect("A" & row()*6-7)
=indirect('A"& row()*6-6)
will give the desired output.
change the numbers to match the row number from which it needs to be pulled.
ravishankar
 
Upvote 0
maybe something like this using PowerQuery

with your example

Column1Custom.1Custom.2Custom.3
Infinity Auto ImportInfinity Auto Import20 Puriri Street, New Lynn, Auckland09 9512882
IV Cars90 Portage Road, Otahuhu, Auckland09 9512843
20 Puriri Street, New Lynn, Auckland
09 9512882
IV Cars
90 Portage Road, Otahuhu, Auckland
09 9512843

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table14"]}[Content],
    Filter = Table.SelectRows(Source, each ([Column1] <> null)),
    IntegerDiv = Table.TransformColumns(Table.AddIndexColumn(Filter, "Index", 0, 1), {{"Index", each Number.IntegerDivide(_, 3), Int64.Type}}),
    Group = Table.Group(IntegerDiv, {"Index"}, {{"Count", each _, type table}}),
    Extract = Table.TransformColumns(Table.AddColumn(Group, "Custom", each Table.Column([Count],"Column1")), {"Custom", each Text.Combine(List.Transform(_, Text.From), "="), type text}),
    Split = Table.SplitColumn(Extract, "Custom", Splitter.SplitTextByDelimiter("=", QuoteStyle.Csv), {"Custom.1", "Custom.2", "Custom.3"}),
    RemOthers = Table.SelectColumns(Split,{"Custom.1", "Custom.2", "Custom.3"})
in
    RemOthers[/SIZE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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