sumproduct?

pimail

New Member
Joined
Jul 12, 2011
Messages
6
<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-GB</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:EnableOpenTypeKerning/> <w:DontFlipMirrorIndents/> <w:OverrideTableStyleHps/> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} </style> <![endif]--> Hi
i have a table C3:AZ331
this represents a school timetable with columns for 50 periods.
in each column there are units of 3 cells with information, e.g.
C3 13A/BS1 (representing a subject)
C4 BS (representing a subject code)
C5 ABC (representing the initials of a teacher)

the columns extend to show the subjects for each year group 13 through 7 taught on each period of the timetable.

I want to be able to count the number of times teacher "abc" is assigned to class 13A/BS1 and the same for all staff and all subjects for each year group.

The end result i would like is a table with teacher’s initials in one column, all the subjects as a header row and the number of times each teacher is teaching a given subject then populates the table.

I have tried variations on sumproduct but end up with a 0 result each time.

Can anyone help or offer other solutions please?

Thank you
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
We would recommend posting a screen shot using one of the tools mentioned here before resorting to uploading files a file storage site. There are three main reasons for this:

1. It is easier to see (right in the post)
2. Some of us work for places that do not allow us to download files from the internet (so you have a better chance getting replies if you can contain everything necessary right in the thread itself)
3. Many of those storage sites have expirations of the files may be taken down at a later time, which can render the thread pretty useless, especially when our goal is to create a searchable database.
 
Upvote 0
<table border="1" cellpadding="0" cellspacing="0"><tbody> <tr style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"> <td>
</td> <td>C</td> <td>D</td> <td>E</td> <td>F</td> <td>G</td> <td>H</td> <td>I</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Ar1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Bs1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Ar1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Bs1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Ch2</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Ar1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Dr1</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ar</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bs</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ar</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bs</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ch</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ar</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Dr</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">TSH</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">BBS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">TSH</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">SHB</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">AJS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">TSH</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">HNM</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Bi1</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Bs1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Ch1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13B/Ec1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Gp1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Gp1</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bi</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bs</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ch</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ec</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Gp</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Gp</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">GAL</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">BBS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">AJS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">SHB</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">ADJ</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">AIM</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Bs1</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Bi1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/En1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13B/Ph1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Hi1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Hi1</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bs</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bi</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">En</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ph</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Hi</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Hi</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">BBS</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">GFH</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">LLL</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">JZS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">JMM</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">JMM</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/En1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13F/Fr1</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Gg1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13B/Bi1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Py1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13D/Py1</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">En</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Fr</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Gg</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Bi</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Py</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Py</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">NLB</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">FAR</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">ASC</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">DCB</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">TMM</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">GMC</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/La1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/La1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13C/Hi1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/La1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13B/Tt1</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13A/Ch2</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">13F/Fr1</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">20</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ex</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ex</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Hi</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ex</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Tt</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Ch</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">Fr</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">21</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">LMF</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">KKF</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">AJS</td> <td style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 9pt">MMB</td></tr> <tr style="HEIGHT: 19px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">22</td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td> <td style="FONT-FAMILY: Arial; FONT-SIZE: 9pt"> </td></tr></tbody></table>
 
Upvote 0
above is a small extract of the table.

any subject e.g. 13C/Ar1 can appear in any column, but will not appear again in the same column.

any subject may appear in more than one 'row' (a row in this case being a set of 3 rows of linked information e.g. rows 3,4,5 are linked data as shown in the table.

also a teacher 'TSH' may be associated with other classes, e.g. 13B/Ar2, 8-2/AR etc and other teachers may be attached to each class.

the outcome i am looking for is a table with column headings of all possible classes, the left column listing all possible staff and the table then showing how many times each teacher is assigned to each class.

i hope this clarifies things but if not please let me know

thank you

john
 
Upvote 0
I am afraid I am not going to be able to be much help here. I have a feeling that the way the data is constructed could make this difficult to do. It is quite messy.

If it were me, I would create this as a relational database and do it in Microsoft Access, which means that the data would have to be entered into multiple tables in a normalized manner, which would enable the data to be worked with much more easily.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top