Column to table

jlajla24

New Member
Joined
Feb 11, 2005
Messages
48
I have a list of data that's all in a column

The current format is
Company name
(empty cell)
Street address
City, State, Zip
Phone number
(empty cell)
(empty cell)
REPEAT ABOVE

I have about 1000 rows in this one column. That yields about 165 individual entities. Is there an easy way to convert this data to a table with a header for each of these entries? That way each entities information would be on a single row that becomes sortable? It's less than ideal in the current format. Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Jlajla24,

This should do what you ask

Jlajla24.xlsx
ABCDEF
1ACME LtdCompanyAddressCity, State, ZipPhone number
2ACME Ltd22 Arcane AveWaco, TX 62626222-455-4555
322 Arcane AveWidget Inc1 WidgetLaneHouson, TX, 34343333-555-8882
4Waco, TX 62626Fildon Corp1 Fildon HouseHendin, TX, 22222333-555-8383
5222-455-4555    
6    
7    
8Widget Inc    
9    
101 WidgetLane    
11Houson, TX, 34343    
12333-555-8882    
13    
14    
15Fildon Corp
16
171 Fildon House
18Hendin, TX, 22222
19333-555-8383
20
Sheet1
Cell Formulas
RangeFormula
C2:C14C2=IF(INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-6,1)="","",INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-6,1))
D2:D14D2=IF(INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-6,1)="","",INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-4,1))
E2:E14E2=IF(INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-6,1)="","",INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-3,1))
F2:F14F2=IF(INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-6,1)="","",INDEX($A$1:$A$9999,((ROW()-ROW($I$1))*7)-2,1))
 
Upvote 0
Absolutely perfect solution. I was able to use this across several worksheets that had different patterns. Thank you so very much.
 
Upvote 0
Absolutely perfect solution. I was able to use this across several worksheets that had different patterns. Thank you so very much.
You're welcome.
Thanks for the feedback but be aware I left a bug in... That first check for empty cells should, of course, use the same -6, -4, -3 and -2 values.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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