#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 989
Default student directory

I have a student directory that shows each kid by last name, first name,
teacher and phone number. It is sorted by last name. I need to make
seperate worksheets that places all kids (with phone numbers) under each
teacher in a list.

Any help will be appreciated.

Mark
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default student directory

Ron de Bruin has an addin that may help.

It's called easyfilter.
http://www.rondebruin.nl/easyfilter.htm

Mark wrote:

I have a student directory that shows each kid by last name, first name,
teacher and phone number. It is sorted by last name. I need to make
seperate worksheets that places all kids (with phone numbers) under each
teacher in a list.

Any help will be appreciated.

Mark


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default student directory

Here's another option, a non-array formulas play which can deliver the
desired results automatically ..

A sample construct is available at:
http://www.savefile.com/files/28968
AutoSlice data w phone to separate sht by teacher.xls

Assume the master list is in sheet named: Master
in cols A to D, headers in row1, data from row2 down
Col C = Teachers (eg: T1, T2, T3, etc), Col D = Phone#s (if any)

Using empty cols to the right of the data, say cols K onwards

List the teachers in K1 across, viz.: T1, T2, T3 .... Note that the listing
must be consistent with the values under col C

Put in K2:
=IF($D2="","",IF($C2=K$1,ROW(),""))
Copy K2 across and fill down to cover the max expected extent of source data

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

[The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly. Technique came from
a post by Harlan]

In a new sheet named: T1
With the same col headers in A1:B1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(Master!$J:$J,,MATCH(WSN,M aster!$K$1:$IV$1,0)),ROWS($A$1:A1))),"",INDEX(Mast er!A:A,MATCH(SMALL(OFFSET(Master!$J:$J,,MATCH(WSN, Master!$K$1:$IV$1,0)),ROWS($A$1:A1)),OFFSET(Master !$J:$J,,MATCH(WSN,Master!$K$1:$IV$1,0)),0)))

Copy A2 across to D2, fill down by the smallest extent sufficient to cover
all the cases expected for any one teacher, say down to D10

Cols A to B will return only the lines for the teacher: T1 from "Master"
with all lines neatly bunched at the top. Now, just make a copy of the sheet:
T1, rename it as: T2, and you'd get the results for T2. Repeat as required
for the rest of the teachers (a one-time job).
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
Mark wrote:
I have a student directory that shows each kid by last name, first name,
teacher and phone number. It is sorted by last name. I need to make
seperate worksheets that places all kids (with phone numbers) under each
teacher in a list.

Any help will be appreciated.

Mark

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default student directory

Clarification:
Cols A to B will return only the lines for the teacher: T1 from "Master"

where there's phone numbers in col D in Master, that is
(as per posted specs)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Code to raise Directory request box ANDYGM Excel Worksheet Functions 2 April 10th 06 11:47 AM
Saving to "open" directory 9119 New Users to Excel 2 January 19th 06 02:39 PM
Staying it its own directory. Steven Excel Worksheet Functions 1 January 7th 06 11:25 PM
average student grades billynolan New Users to Excel 4 September 8th 05 04:21 PM
How do I insert the directory path in my Excel file? Insert a Directory Path in Header/Footer Excel Worksheet Functions 2 February 4th 05 09:23 PM


All times are GMT +1. The time now is 08:38 AM.

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

About Us

"It's about Microsoft Excel"