PC Review


Reply
Thread Tools Rate Thread

how to display subjects taught by a specific teacher upon selection of the teacher name in a drop down box

 
 
janice fernandes
Guest
Posts: n/a
 
      9th Mar 2006
there are 3 teachers in a school. Ann, ben and carl. Ann teaches math and
history, ben teaches math, history and science, carl teaches math, science
and drawing. suppose cell a1 contains a drop down box containing the three
names (ann, ben and carl). if i select ann in a1, cells a3 should display
math and cell a4 should display history. alternatively, if i select ben in
a1, cell a3 should display math, cell a4 should display history and cell a5
should display science. alternatively if i select carl in a1, cell a3 should
display math, cell a4 should display science and cell a5 should display
drawing. i hope i have made my question clear. thank you in advance for the
answer. also what is the way to store the teacher names with their related
subjects

is there a specific term to describe the above concept? - therefore I can
search in google, excel help sites using that term. Also can you suggest a
better title for better results


 
Reply With Quote
 
 
 
 
flummi
Guest
Posts: n/a
 
      9th Mar 2006
Here's a proposal:

A1 = validation list with keys in I2:I5 (first col of vlookup table)
B1:E1 = results from vlookup
Formula in B1 copied to C1:E1:

=IF(VLOOKUP($A$1;$I$1:$M$4;J1;FALSE)="";"";VLOOKUP($A$1;$I$1:$M$4;J1;FALSE))

Lookup table in

0 2 3 4 5
ann math history
ben math history science
carl math science drawing german
peter english drawing german

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      9th Mar 2006
You have a response on JMT

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"janice fernandes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> there are 3 teachers in a school. Ann, ben and carl. Ann teaches math and
> history, ben teaches math, history and science, carl teaches math, science
> and drawing. suppose cell a1 contains a drop down box containing the three
> names (ann, ben and carl). if i select ann in a1, cells a3 should display
> math and cell a4 should display history. alternatively, if i select ben in
> a1, cell a3 should display math, cell a4 should display history and cell

a5
> should display science. alternatively if i select carl in a1, cell a3

should
> display math, cell a4 should display science and cell a5 should display
> drawing. i hope i have made my question clear. thank you in advance for

the
> answer. also what is the way to store the teacher names with their related
> subjects
>
> is there a specific term to describe the above concept? - therefore I can
> search in google, excel help sites using that term. Also can you suggest a
> better title for better results
>
>



 
Reply With Quote
 
flummi
Guest
Posts: n/a
 
      9th Mar 2006
Sorry, hit the send button too early. :-(

Here's a proposal:

A1 = validation list with keys in I2:I5 (first col of vlookup table)
B1:E1 = results from vlookup
Formula in B1 copied to C1:E1:

=IF(VLOOKUP($A$1;$I$1:$M$4;J1;FALSE)="";"";VLOOKUP($A$1;$I$1:$M$4;J1;FALSE)*)


You may have to replace the semicolons with commas.

Lookup table in I1:M5

0 2 3 4 5
ann math history
ben math history science
carl math science drawing german
peter english drawing german

the numbers in the first row of the lookup table allow copying the
formula without modification.

Hans

 
Reply With Quote
 
Tushar Mehta
Guest
Posts: n/a
 
      9th Mar 2006
In article <(E-Mail Removed)>,
(E-Mail Removed) says...
> You have a response on JMT
>
>

What does that mean?

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
Reply With Quote
 
Tushar Mehta
Guest
Posts: n/a
 
      9th Mar 2006
If you are OK with Hans' answers, read no further. {grin}

Ideally, your data should be laid out in a table with 2 columns:
Teacher and Class.

Now, you can use a variety of techniques to find the relationship between
teachers and the classes they teach including filters and PivotTables.


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article <(E-Mail Removed)>, janicefernandes17
@yahoo.co.in says...
> there are 3 teachers in a school. Ann, ben and carl. Ann teaches math and
> history, ben teaches math, history and science, carl teaches math, science
> and drawing. suppose cell a1 contains a drop down box containing the three
> names (ann, ben and carl). if i select ann in a1, cells a3 should display
> math and cell a4 should display history. alternatively, if i select ben in
> a1, cell a3 should display math, cell a4 should display history and cell a5
> should display science. alternatively if i select carl in a1, cell a3 should
> display math, cell a4 should display science and cell a5 should display
> drawing. i hope i have made my question clear. thank you in advance for the
> answer. also what is the way to store the teacher names with their related
> subjects
>
> is there a specific term to describe the above concept? - therefore I can
> search in google, excel help sites using that term. Also can you suggest a
> better title for better results
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pupils's directories from a teacher.txt in teacher directory Pascal Microsoft Windows 2000 CMD Promt 2 30th Aug 2008 01:02 PM
Could you be a teacher? itsme General Discussion 15 11th Apr 2007 10:10 PM
Help for a teacher =?Utf-8?B?QUdJTExFU1BFWQ==?= Microsoft Access 3 6th Aug 2006 01:27 PM
help for teacher! Babio Microsoft Excel Programming 2 8th Oct 2004 11:38 PM
teacher help Tim K. Microsoft Excel Setup 2 21st Aug 2004 12:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 PM.