Transposing a large data set in a single column to multiple rows

moonsketcher

New Member
Joined
Jun 7, 2016
Messages
5
Hello :)

I have a long single column of data, that I need to transpose and have each new section separated onto a new row. (I realize that description is really confusing, I have included an example below)

Data TypeLarge Column of Data
Name:
Mark
Address: 123 Roadname here
City/State: Columbus, Ohio
Phone: 555.555.5555
Name:
John
Address: 456 Roadtest Rd
City/State: San Diego, California
Phone: 555.555.5555
Name: Tom
Address: 456 Testing Ct
City/State:
Seattle, Washington
Phone: 555.555.5555
Name:Bob
Address:123 Excel Way
City/State:Castlerock, Maine
Phone:555.555.5555

<tbody>
</tbody>


And I'm trying to set a template so that the data (when pasted into the sheet) is auto formatted in a separate sheet to look like this:

NameAddressCity/StatePhone
Mark123 Roadname hereColumbus, Ohio555.555.5555
John456 Roadtest RdSan Diego, California555.555.5555
Tom456 Testing CtSeattle, Washington555.555.5555
Bob123 Excel WayCastlerock, Maine555.555.5555

<tbody>
</tbody>

Obviously, this is false data. The data I'm working with is sensitive so I can't paste it here.

I have the distinct feeling I am overthinking it, but after days of beating my head against the wall, I am finally giving in and asking for help. I have hunted all over the web and this site, but I think in the process of overthinking - that I am missing some key search phrase to have the magical answer handed to me.

The =Transpose function will not work because it requires extra key strokes. And no break for the next row.

I am making a simple template for EU to utilize to paste in data and have it automatically formatted accordingly.

Any help that anyone could offer would be greatly appreciated.

Please and thank you in advance.
 
Again, assuming your source data with headers begins in Cell A1.
Copy the possible Headers in C1:H1
In C2 paste the following formula
Code:
=IF($A2=$A$2,VLOOKUP(C$1,$A2:$B8,2,FALSE),"")
Fill Across and Down.

Makes the assumption there are a minimum of 4 fields per name and no more than 6 fields per name.

(Okay, so I took lunch at my desk.)


Lunch at your desk is never a good thing. :)

I pasted the formulate into C2 (as before) and it filled the first row but nothing further. :(

SO CLOSE!

I really can't tell you how much I appreciate your help.
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Sadly, I can't use a macro for this. I need to be able to ship it to EU and macro enabled docs get stripped out. But thank you very much for your help, I did save this for reference sakes.

moonsketcher,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.
 
Upvote 0
:confused:
How many rows did you fill down?
Double check the $ in your formula....
 
Upvote 0
Can you use something like this. Hope this helps.
Mike Szczesny


Excel 2012
ABCDEFG
1namemarknameaddresscitystate
2address123 Jonesmark123 Joneshoustontexas
3cityhoustonbill456 jonesdallastexas
4statetexasjack789 millschicagoillinois
5namebilldave458 oakboiseIdaho
6address456 jones
7citydallas
8statetexas
9namejack
10address789 mills
11citychicago
12stateillinois
13namedave
14address458 oak
15cityboise
16stateIdaho
Sheet1
Cell Formulas
RangeFormula
D2{=IFERROR(INDEX($B$1:$B$16,SMALL(IF($A$1:$A$16=D$1,ROW($A$1:$A$16)-ROW($A$1)+1),ROWS($D$2:D2)))," ")}
E2{=IFERROR(INDEX($B$1:$B$16,SMALL(IF($A$1:$A$16=E$1,ROW($A$1:$A$16)-ROW($A$1)+1),ROWS($D$2:E2)))," ")}
F2{=IFERROR(INDEX($B$1:$B$16,SMALL(IF($A$1:$A$16=F$1,ROW($A$1:$A$16)-ROW($A$1)+1),ROWS($D$2:F2)))," ")}
G2{=IFERROR(INDEX($B$1:$B$16,SMALL(IF($A$1:$A$16=G$1,ROW($A$1:$A$16)-ROW($A$1)+1),ROWS($D$2:G2)))," ")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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