Hey guys, I’m stuck on a Google Sheets problem. I’ve got this sheet with subjects and people’s names for different days and times. I want to count stuff in a special way, but I can’t figure it out.
Here’s what I’m trying to do:
Count how many people are listed for each subject, day, and time (day/night).
Calculate the total duration for each subject per day.
Make it all dynamic so adding or removing rows doesn’t mess things up.
I’ve tried using COUNTA and INDIRECT, but I’m not getting the results I want. The tricky part is I need it to find the subjects no matter where they are in the sheet.
Here’s a simplified version of what I’m aiming for:
| Day | People (Day) | People (Night) | Total Duration |
|-----------|--------------|----------------|----------------|
| Monday | 2 | 1 | 120 |
| Tuesday | 1 | 3 | 180 |
| Wednesday | 3 | 1 | 360 |
Any ideas on how to make this work? I’m totally stuck!
Remember to replace the column references with your actual data ranges. It took some trial and error, but once set up, it’s been a real time-saver for me. Hope this helps!