Count report

CHML

Board Regular
Joined
Mar 19, 2023
Messages
73
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hi,
Here is my scenario; For every session taught by a teacher, with at least one student participating, that is what counts. Here is part of a spreadsheet that shows students' attendance, each group with at least one "P" for that day, is considered a session and counts.

Now is my question; how can I get a report of the total sessions per group? (in this example each group has done 8 sessions)
 

Attachments

  • SampleMr.png
    SampleMr.png
    129.9 KB · Views: 10

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
in circled section, are you asking for count of all Ps from R2 to AA 12?
 
Upvote 0
or are you asking for a count of all columns in R2:AA12 where there is at least one P in the column?
 
Upvote 0
A count of DAYS that have at least one "P" per group. e.g. group 1STA = 8

Thanks
 
Upvote 0
I'm not going to recreate you exact grid. but I think this is what you need from a formula perspective:

You may need to enter it with the CSE keystrok (CTRL-SHFT-ENTER)

mr excel questions 34.xlsm
HRSTUVWXYZAAABAC
1GROUP1(Mon)2(Tue)3(Wed)4(Thu)5(Fri)6(Sat)7(Sun)8(Mon)9(Tue)10(Wed)
21STAPPPPPCPPP1STA8
31STAPPPPPCPPP2STB8
41STAPAPPPCPPP1STB8
51STAPPPPPCPPP2STA8
61STAPAPAPCAPP
71STAPAAPPCPPA
81STAPPPPACAPP
91STAPAPPPCPPP
102STBPPPPPCPPP
112STBPPAPACPPP
122STBPPPPPCPPP
132STBPPPPPCPPP
142STBPPPPACPPP
152STBPPPPPCPPP
162STBAAPPACPAP
172STBPPPPPCPPP
181STBAPPPPCPPP
191STBPPPPPCAPA
201STBPAPPPCPPP
211STBPPPPPCPPA
221STBAPPPPCPPP
231STBAPPPPCPAP
241STBPPPPACPAP
251STBPPPPPCPAP
262STAPPPPPCPPP
272STAPPAPPCPPP
282STAPPPPPCPPP
292STAPPPPACPPP
302STAAAPPPCPPP
312STAPPPPPCPPP
322STAPPPPPCPPP
332STAPPPPPCPPP
CHML
Cell Formulas
RangeFormula
AC2:AC5AC2=(--(SUM(((--($H$2:$H$33=$AB2))*(--($R$2:$R$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($S$2:$S$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($T$2:$T$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($U$2:$U$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($V$2:$V$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($W$2:$W$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($X$2:$X$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($Y$2:$Y$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($Z$2:$Z$33="P"))))>0)) +(--(SUM(((--($H$2:$H$33=$AB2))*(--($AA$2:$AA$33="P"))))>0))
 
Upvote 1
Solution
You're amazing, Awoohaw!! Thank you!
 
Upvote 0
You're amazing, Awoohaw!! Thank you!
You're welcome, I'm pleased you found a solution on the Mr. Excel Forum.

If you believe one of the posts here has provided you with a solution, please mark that post as the answer.

Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,940
Members
451,730
Latest member
BudgetGirl

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