help. need a formula

samway301

New Member
Joined
Aug 10, 2017
Messages
4
i have a spreadsheet with many rows that i need sorted. it looks something like what's below... (there are ~2500 companies in total)

A
[TABLE="width: 500"]
<tbody>[TR]
[TD]Company A[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[/TR]
[TR]
[TD]Address[/TD]
[/TR]
[TR]
[TD]City, State, Zip
[/TD]
[/TR]
[TR]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]Fax[/TD]
[/TR]
[TR]
[TD]Email[/TD]
[/TR]
[TR]
[TD]Fluff[/TD]
[/TR]
[TR]
[TD]Fluff
[/TD]
[/TR]
[TR]
[TD]Fluff[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[/TR]
[TR]
[TD]name[/TD]
[/TR]
[TR]
[TD]address[/TD]
[/TR]
[TR]
[TD]city, state zip[/TD]
[/TR]
[TR]
[TD]phone[/TD]
[/TR]
[TR]
[TD]fax[/TD]
[/TR]
[TR]
[TD]email[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]fluff[/TD]
[/TR]
[TR]
[TD]Company C[/TD]
[/TR]
</tbody>[/TABLE]

is there a formula that'll copy the data starting with the green text for company name, and put name, address, phone, fax, email onto another sheet? the 'fluff' varies from 5 rows to 20. it's not consistent.

i'm looking for output similar to whats below: (keeping the green text is not necessary)

A B C D E F
[TABLE="width: 500"]
<tbody>[TR]
[TD]Company A[/TD]
[TD]Name[/TD]
[TD]Address (street, city, state, zip[/TD]
[TD]Phone[/TD]
[TD]Fax[/TD]
[TD]Email[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]Name[/TD]
[TD]Address (street, city, state, zip[/TD]
[TD]Phone[/TD]
[TD]Fax[/TD]
[TD]Email[/TD]
[/TR]
[TR]
[TD]Company C[/TD]
[TD]Name[/TD]
[TD]Address (street, city, state, zip[/TD]
[TD]Phone[/TD]
[TD]Fax[/TD]
[TD]Email[/TD]
[/TR]
</tbody>[/TABLE]


Thank you in advance.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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