As I often wrote:
when a problem is correctly described, it's quite solved 😉
In the table named Tableau 1 it build a resume of class usage.
cell B3: =IF(VLOOKUP($A,class 1 :: $A:$E,2,0),TRUE,"")
cell C3: =IF(VLOOKUP($A,class 1 :: $A:$E,3,0),TRUE,"")
cell D3: =IF(VLOOKUP($A,class 1 :: $A:$E,4,0),TRUE,"")
cell E3: =IF(VLOOKUP($A,class 1 :: $A:$E,5,0),TRUE,"")
cell F3: =IF(VLOOKUP($A,class 2 :: $A:$E,2,0),TRUE,"")
cell G3: =IF(VLOOKUP($A,class 2 :: $A:$E,3,0),TRUE,"")
cell H3: =IF(VLOOKUP($A,class 2 :: $A:$E,4,0),TRUE,"")
cell I3: =IF(VLOOKUP($A,class 2 :: $A:$E,5,0),TRUE,"")
cell J3: =IF(VLOOKUP($A,class 3 :: $A:$E,2,0),TRUE,"")
cell K3: =IF(VLOOKUP($A,class 3 :: $A:$E,3,0),TRUE,"")
cell L3: =IF(VLOOKUP($A,class 3 :: $A:$E,4,0),TRUE,"")
cell M3: =IF(VLOOKUP($A,class 3 :: $A:$E,5,0),TRUE,"")
fill down every rows with a teacher name.
In row 10 ( a footer row),
in B10 enter =COUNTIF(B,TRUE)
fill to the right.
If the value is 0, the class is unoccupied
If the value is 1, the class is occupied
If the value is greater than 1, the class is surbooked 😉
Yvan KOENIG (from FRANCE mercredi 25 février 2009 22:55:19)