total trainers per hour

little BS

New Member
Joined
Oct 14, 2018
Messages
2
I am trying to figure out how to find the total trainers working in same hour, and needs to be able to change when a trainer is added or removed. Example at the bottom of table in red. Below is how my spreadsheet is set up. I am new to the mrexel forum and not an expert by any means with excel, so not sure how this works, and greatly appreciate help with this. Thank you

[TABLE="width: 680"]
<tbody>[TR]
[TD]8:00 AM[/TD]
[TD]9:00 AM[/TD]
[TD]10:00 AM[/TD]
[TD]11:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD][/TD]
[TD][/TD]
[TD]totals[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]trainer 1[/TD]
[TD]trainer 1[/TD]
[TD]trainer 1[/TD]
[TD]trainer 1[/TD]
[TD]trainer 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]AM[/TD]
[TD]PM[/TD]
[/TR]
[TR]
[TD]trainer 2[/TD]
[TD]trainer 2[/TD]
[TD]trainer 2[/TD]
[TD]trainer 2[/TD]
[TD]no trainer[/TD]
[TD]trainer 2[/TD]
[TD][/TD]
[TD]no trainer[/TD]
[TD="align: right"]70[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]trainer 3[/TD]
[TD]trainer 3[/TD]
[TD]trainer 3[/TD]
[TD]trainer 3[/TD]
[TD]trainer 3[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 1[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]trainer 4[/TD]
[TD]trainer 4[/TD]
[TD]trainer 4[/TD]
[TD]no trainer[/TD]
[TD]trainer 4[/TD]
[TD]trainer 4[/TD]
[TD][/TD]
[TD]trainer 2[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Trainer 5[/TD]
[TD]Trainer 5[/TD]
[TD]Trainer 5[/TD]
[TD]Trainer 5[/TD]
[TD]no trainer[/TD]
[TD]Trainer 5[/TD]
[TD][/TD]
[TD]trainer 3[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]trainer 6[/TD]
[TD]trainer 6[/TD]
[TD]trainer 6[/TD]
[TD]trainer 6[/TD]
[TD]trainer 6[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]trainer 7[/TD]
[TD]trainer 7[/TD]
[TD][/TD]
[TD]Trainer 5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 8[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]trainer 9[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]trainer 10[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]2:00 PM[/TD]
[TD]3:00 PM[/TD]
[TD]4:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]6:00 PM[/TD]
[TD]7:00 PM[/TD]
[TD][/TD]
[TD]trainer 11[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]trainer 7[/TD]
[TD]trainer 7[/TD]
[TD]trainer 7[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 12[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]trainer 8[/TD]
[TD]trainer 8[/TD]
[TD]trainer 8[/TD]
[TD]trainer 8[/TD]
[TD]trainer 8[/TD]
[TD][/TD]
[TD]trainer 13[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]trainer 9[/TD]
[TD]trainer 9[/TD]
[TD]trainer 9[/TD]
[TD]trainer 9[/TD]
[TD]trainer 9[/TD]
[TD][/TD]
[TD]trainer 14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]trainer 10[/TD]
[TD]trainer 10[/TD]
[TD]trainer 10[/TD]
[TD]trainer 10[/TD]
[TD]trainer 10[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]Trainer 15[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 16[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 18[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 19[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD]trainer 20[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD]no trainer[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 5"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]8:00 AM[/TD]
[TD]9:00 AM[/TD]
[TD]10:00 AM[/TD]
[TD]11:00 AM[/TD]
[TD]12:00 PM[/TD]
[TD]1:00 PM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2:00 PM[/TD]
[TD]3:00 PM[/TD]
[TD]4:00 PM[/TD]
[TD]5:00 PM[/TD]
[TD]6:00 PM[/TD]
[TD]7:00 PM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to MrExcel.

How about


Excel 2013/2016
ABCDEF
278:00 AM9:00 AM10:00 AM11:00 AM12:00 PM1:00 PM
28566555
29
302:00 PM3:00 PM4:00 PM5:00 PM6:00 PM7:00 PM
31244332
ddr
Cell Formulas
RangeFormula
A28=COUNTIF(A2:A11,"<>no trainer")
A31=COUNTIF(A15:A24,"<>no trainer")
B28=COUNTIF(B2:B11,"<>no trainer")
B31=COUNTIF(B15:B24,"<>no trainer")
C28=COUNTIF(C2:C11,"<>no trainer")
C31=COUNTIF(C15:C24,"<>no trainer")
D28=COUNTIF(D2:D11,"<>no trainer")
D31=COUNTIF(D15:D24,"<>no trainer")
E28=COUNTIF(E2:E11,"<>no trainer")
E31=COUNTIF(E15:E24,"<>no trainer")
F28=COUNTIF(F2:F11,"<>no trainer")
F31=COUNTIF(F15:F24,"<>no trainer")
 
Upvote 0
Thank you so much fluff! I thought i was to use countif, but could figure out the rest of formula! You rock!!
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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