![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 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. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
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.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 48
|
Sorry the third column should all be subsubheadings.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|