Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Nested grouping of hierarchical headings during/after import

I've used Excel on occassion over the years, but not much beyond the
capabilities beyond found in spreadsheets from decades ago. All of a
sudden, in the immediate term, I need to read in pages an pages of row
headings from a text file, each occupying its own line by itself, and
each preceded by a variable number of tabs.

A heading preceded by N tabs is often followed by a series of headings
with N+1 tabs. The N-tab heading is the parent of the N+1-tab "child"
headings following it. That is, the N+1-tab headings are subordinate
points that, together, make up the N-tab heading. It also is possible
for each N+1-tab heading to act as a parent for any N+2-tab child
headings following it. Basically, I have a tree of headings, all
meant to occupy the left-most column, and some headings subordinate to
others.

At any level in the tree of headings, I would like the child headings
to be grouped so as to be collapsable. That way, only the parent
heading shows. Since there are various levels of subordination, some
of the groups will be nested. When all groups are collapsed, I see
only the first level headings. I can then uncollapse the one of
interest, go to the 2nd level heading of interest and uncollapse it,
and so forth until I get to the level of detail that is sufficient, or
until there are no more suborinate headings along that path of the
tree.

I suspect that the grouping is automatable in VBA (though I could be
wrong), and I have identified VBA as something essential to take a
course in. However, the time-frame for doing the above doesn't make
it possible for this time around. The grouping of row headings
according to its hierarchical tree structure will be done manually. I
was wondering, however, if this is common enough that there are
scripts on the web for doing that? I can use a pretty powerful text
editor (vim) to prepocess the text file for importation, if that
improves the prospects.

Thanks for any pointers to pre-existing macros that might help. I am
using Excel 2003 on Windows XP.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Nested grouping of hierarchical headings during/after import

On Mar 22, 10:12 am, Paul wrote:
I've used Excel on occassion over the years, but not much beyond the
capabilities beyond found in spreadsheets from decades ago. All of a
sudden, in the immediate term, I need to read in pages an pages of row
headings from a text file, each occupying its own line by itself, and
each preceded by a variable number of tabs.

A heading preceded by N tabs is often followed by a series of headings
with N+1 tabs. The N-tab heading is the parent of the N+1-tab "child"
headings following it. That is, the N+1-tab headings are subordinate
points that, together, make up the N-tab heading. It also is possible
for each N+1-tab heading to act as a parent for any N+2-tab child
headings following it. Basically, I have a tree of headings, all
meant to occupy the left-most column, and some headings subordinate to
others.

At any level in the tree of headings, I would like the child headings
to be grouped so as to be collapsable. That way, only the parent
heading shows. Since there are various levels of subordination, some
of the groups will be nested. When all groups are collapsed, I see
only the first level headings. I can then uncollapse the one of
interest, go to the 2nd level heading of interest and uncollapse it,
and so forth until I get to the level of detail that is sufficient, or
until there are no more suborinate headings along that path of the
tree.

I suspect that the grouping is automatable in VBA (though I could be
wrong), and I have identified VBA as something essential to take a
course in. However, the time-frame for doing the above doesn't make
it possible for this time around. The grouping of row headings
according to its hierarchical tree structure will be done manually. I
was wondering, however, if this is common enough that there are
scripts on the web for doing that? I can use a pretty powerful text
editor (vim) to prepocess the text file for importation, if that
improves the prospects.

Thanks for any pointers to pre-existing macros that might help. I am
using Excel 2003 on Windows XP.


I just to wanted elaborate on what I meant about preprocessing the
text file of row headings to improve compatibility with any existing
script. Vim is capable of macros and regular expression search/
replace.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Hierarchical List Paul Excel Discussion (Misc queries) 1 August 2nd 06 02:00 PM
hierarchical axis labels reverse chart steve Charts and Charting in Excel 1 February 7th 06 08:13 PM
Hierarchical Worksheet Tabs??? New Excel feature? JMcC Excel Discussion (Misc queries) 1 October 11th 05 04:46 PM
Can I invert a table so row headings are now column headings etc Sharon Excel Worksheet Functions 3 February 10th 05 07:28 PM


All times are GMT +1. The time now is 01:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"