View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Creating child worksheet from parent

Here is another formula solution which might work:

Try this:

=INDEX(Master!A$1:A$11,SMALL(IF(Master!$A$1:$A$11= $A$1,ROW($1:$11)*(Master!$A$1:$A$11=$A$1),""),ROW( A1)))

This array formula uses the content of cell A1 on a "child" sheet to bring
in all data for the child group.

Enter this on the second row of the child sheet and copy it down and over as
far as desired. This formula assumes that the entry on the master sheet
which indicated which items are to be brought over are located in column A.
Adjust the ranges down to match the extent of your data, ie. changen the A11
and $11 references to extend down as needed.

To make it an array press Shift+Ctrl+Enter to enter the formula.

When the formula extends beyond the maximumn number of items it will return
a #NUM! error. You can suppress this using conditional formatting or by
modifying the formula:

1. Conditional Formatting - Use =ISERR(A2) and set the font color to match
the background - white for example.

2. The modified formula approach uses:

=IF(ROW()MAX(ROW($1:$11)*(Master!$A$1:$A$11=$A$1) ),"",INDEX(Master!A$1:A$11,SMALL(IF(Master!$A$1:$A $11=$A$1,ROW($1:$11)*(Master!$A$1:$A$11=$A$1),""), ROW(A1))))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Vibeke" wrote:

Hi,
I have a master worksheet which consists of
Column A1:A5000 is numbers 1-5,000 (being ID numbers on tickets)
Column B1:B5000 is text (being one of six place names, venues for ticket
sales)

In six other (child) worksheets, named for the venues, I'd like to create
lists that others can use to record whether a specific ticket is sold. For
example, if "Townsville" gets tickets 250 to 1200, this would be recorded on
the Parent list and the Townsville worksheet would only list those numbers -
with no blank rows! I may need to amend the master list from time to time-
e.g. if tickets aren't sold in Townsville, they can be re-assigned to
Cityville (and so disappear from the former worksheet and show up in the
latter).

I think I need MATCH, INDEX and\or ROW to do this, but after trying sevreal
options, I'm no closer.

Any ideas? Thanks in anticipation.