Use row values in column1 as table column headers.

csenor

Board Regular
Joined
Apr 10, 2013
Messages
169
Office Version
  1. 365
Platform
  1. Windows
Hello everyone. I have a table of addresses that I need to transform. Here's a sample table. I need to pivot this data so there's 3 columns labeled Name, Street, and City. Then the column 2 data would transpose every 3 lines of data. Can anyone help?

Column1Column2
NameDELSEA SHOPRITE
Street1255 W Landis Ave
CityVineland, NJ 08360
NameRITE AID # 10487
Street7 W Landis Ave
CityVineland, NJ 08360
NameCVS STORE #00695
Street76 Landis Ave
CityVineland, NJ 08360
NameCVS STORE #05855
Street1163 E Chestnut Ave
CityVineland, NJ 08360
NameINSPIRA MEDICAL CENTER
Street1505 W Sherman Ave
CityVineland, NJ 08360
NameRITE AID # 7822
Street2791 S Delsea Dr
CityVineland, NJ 08360
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi CSenor,

Does this do what you want?

Csenor.xlsx
ABCDEF
1Column1Column2NameStreetCity
2NameDELSEA SHOPRITEDELSEA SHOPRITE1255 W Landis AveVineland, NJ 08360
3Street1255 W Landis AveRITE AID # 104877 W Landis AveVineland, NJ 08360
4CityVineland, NJ 08360CVS STORE #0069576 Landis AveVineland, NJ 08360
5NameRITE AID # 10487CVS STORE #058551163 E Chestnut AveVineland, NJ 08360
6Street7 W Landis AveINSPIRA MEDICAL CENTER1505 W Sherman AveVineland, NJ 08360
7CityVineland, NJ 08360RITE AID # 78222791 S Delsea DrVineland, NJ 08360
8NameCVS STORE #00695   
9Street76 Landis Ave   
10CityVineland, NJ 08360   
11NameCVS STORE #05855   
12Street1163 E Chestnut Ave   
13CityVineland, NJ 08360   
14NameINSPIRA MEDICAL CENTER   
15Street1505 W Sherman Ave   
16CityVineland, NJ 08360   
17NameRITE AID # 7822   
18Street2791 S Delsea Dr   
19CityVineland, NJ 08360   
Sheet1
Cell Formulas
RangeFormula
D2:D19D2=INDEX($B:$B,(ROW()*3)-4)&""
E2:E19E2=INDEX($B:$B,(ROW()*3)-3)&""
F2:F19F2=INDEX($B:$B,(ROW()*3)-2)&""
 
Upvote 0
Beat me to the punch, I used TRANSPOSE

Book1
ABCDEF
1Column1Column2NameStreetCity
2NameDELSEA SHOPRITEDELSEA SHOPRITE1255 W Landis AveVineland, NJ 08360
3Street1255 W Landis AveRITE AID # 104877 W Landis AveVineland, NJ 08360
4CityVineland, NJ 08360CVS STORE #0069576 Landis AveVineland, NJ 08360
5NameRITE AID # 10487CVS STORE #058551163 E Chestnut AveVineland, NJ 08360
6Street7 W Landis AveINSPIRA MEDICAL CENTER1505 W Sherman AveVineland, NJ 08360
7CityVineland, NJ 08360RITE AID # 78222791 S Delsea DrVineland, NJ 08360
8NameCVS STORE #00695
9Street76 Landis Ave
10CityVineland, NJ 08360
11NameCVS STORE #05855
12Street1163 E Chestnut Ave
13CityVineland, NJ 08360
14NameINSPIRA MEDICAL CENTER
15Street1505 W Sherman Ave
16CityVineland, NJ 08360
17NameRITE AID # 7822
18Street2791 S Delsea Dr
19CityVineland, NJ 08360
Sheet5
Cell Formulas
RangeFormula
D2:F7D2=TRANSPOSE(INDIRECT("B"&ROW()*3-4&":B"&ROW()*3-2))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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