#1   Report Post  
Jill Curly via OfficeKB.com
 
Posts: n/a
Default Unique ID's

I have set up a new spreadsheet with pupil's achievement levels in different
subjects. Each subject data is stored on a separate sheet. Each pupil has a
unique ID - which is on each sheet. Is there any way I can set up excel to
combine the results of one pupil acheivements in all subject areas. i.e. will
excel look on each separate sheet and locate the results for a particular
pupil - if so - how? Any help gratefully received.
  #2   Report Post  
Max
 
Posts: n/a
Default

Here's one set-up to try ..

Link to a sample file at:
http://www.savefile.com/files/2254808
ExtractingFromMultipleSheets_UniqueIDs_JillCurly_n ewusers.xls

Assume the subject sheets' set up (identical in structure) is as follows:

In sheet: Sub1
---------
in cols A to C, data from row2 down

Name UniqID Marks
Pup4 1237 85
Pup1 1234 70
Pup2 1235 69
Pup5 1238 66
Pup3 1236 58

(Let's assume lines are sorted in descending order by marks)

In sheet: Sub2
--------
Name UniqID Marks
Pup1 1234 86
Pup4 1237 78
Pup5 1238 78
Pup3 1236 71
Pup2 1235 57

In sheet: Sub3
-----------
Name UniqID Marks
Pup2 1235 79
Pup5 1238 65
Pup1 1234 61
Pup4 1237 60
Pup3 1236 57

In sheet: Master
-----------
The set up in cols A to E,
data from row2 down is:

Name UniqID Sub1 Sub2 Sub3
Pup1 1234
Pup2 1235
Pup3 1236
Pup4 1237
Pup5 1238
etc

Put in C2:
=INDEX(INDIRECT("'"&C$1&"'!C:C"),MATCH(Master!$B2, INDIRECT("'"&C$1&"'!B:B"),
0))

Copy C2 across to E2, fill down to E6 populate the table

For the sample subject marks in Sub1, Sub2 and Sub3, the formulas will
extract the marks correctly for each pupil's unique id from each subject
sheet to yield:

Name UniqID Sub1 Sub2 Sub3
Pup1 1234 70 86 61
Pup2 1235 69 57 79
Pup3 1236 58 71 57
Pup4 1237 85 78 60
Pup5 1238 66 78 65

Adapt to suit ..

Note that the subject names entered in C1:E1 (i.e.: Sub1, Sub2, Sub3)
must match exactly with the sheetnames
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Jill Curly via OfficeKB.com" wrote in message
...
I have set up a new spreadsheet with pupil's achievement levels in

different
subjects. Each subject data is stored on a separate sheet. Each pupil

has a
unique ID - which is on each sheet. Is there any way I can set up excel

to
combine the results of one pupil acheivements in all subject areas. i.e.

will
excel look on each separate sheet and locate the results for a particular
pupil - if so - how? Any help gratefully received.



  #3   Report Post  
Max
 
Posts: n/a
Default

Put in C2:

=INDEX(INDIRECT("'"&C$1&"'!C:C"),MATCH(Master!$B2, INDIRECT("'"&C$1&"'!B:B"),
0))


The suggested formula above is okay, but it inadvertently carried
an extraneous sheet reference (Master!) in: Master!$B2
(sorry about that)

Put instead in C2:
=INDEX(INDIRECT("'"&C$1&"'!C:C"),MATCH($B2,INDIREC T("'"&C$1&"'!B:B"),0))

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


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
count unique with conditions \ditzman via OfficeKB.com\ Excel Worksheet Functions 8 July 8th 05 12:41 PM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM
Count Unique Values annie Excel Worksheet Functions 1 June 9th 05 07:19 AM
Counting Unique Cells When Spread Sheet is Filtered carl Excel Worksheet Functions 1 June 3rd 05 07:20 PM
find rows for unique data in 1 column and different data in other. Dot Majewski Excel Discussion (Misc queries) 1 January 21st 05 12:23 AM


All times are GMT +1. The time now is 03:12 AM.

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"