Macro Needed to Parse Data

tleonardo1

New Member
Joined
Mar 31, 2002
Messages
48
Old system spits out data that has info such as
Heading1
Subheading1
SubSubheading1

Under a heading there can be multiple subheadings and below that multiple subsubheadings. I want a macro that will grab the data and return 3 columns of data from the one. The first column should be filled with heading the second with subheading, the third with subsubheading. The trick is I want all of the first colum cells to be filled with the heading value until it finds another heading value etc. So the final list will look like this:

heading1 subheading1 subheading1
heading1 subheading1 subheading2
heading1 subheading1 subheading3
heading1 subheading2 subheading1
heading1 subheading2 subheading2
heading2 subheading1 subheading1
heading2 subheading2 subheading1

etc.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Your list doesn't have any subsubheadings. Is that a mistake or is it supposed to be that way. Explain more about the order that these headings and such are in. Your final list doesn't seem to follow any order.
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

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