Closed Thread
Results 1 to 6 of 6

how to display subjects taught by a specific teacher upon selection of the t

  1. #1
    janice fernandes
    Guest

    how to display subjects taught by a specific teacher upon selection of the t

    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



  2. #2
    flummi
    Guest

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

    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


  3. #3
    Bob Phillips
    Guest

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

    You have a response on JMT

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "janice fernandes" <janicefernandes17@yahoo.co.in> wrote in message
    news:uQ4fHE1QGHA.4452@TK2MSFTNGP12.phx.gbl...
    > 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
    >
    >




  4. #4
    flummi
    Guest

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

    Sorry, hit the send button too early. :-(

    Here's a proposal:

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

    =3DIF(VLOOKUP($A$1;$I$1:$M$4;J1;FALSE)=3D"";"";VLOOKUP($A$1;$I$1:$M$4;J1;FA=
    LSE)=AD)


    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


  5. #5
    Tushar Mehta
    Guest

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

    In article <Ojnxuv1QGHA.5468@TK2MSFTNGP14.phx.gbl>,
    bob.phillips@notheretiscali.co.uk 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

  6. #6
    Tushar Mehta
    Guest

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

    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 <uQ4fHE1QGHA.4452@TK2MSFTNGP12.phx.gbl>, 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
    >
    >
    >


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1