Numbers : multiple SUMIF commands
Hello
I’d be so appreciative with some help to create a formula that solves 2 challenges in relation to a roster creation spreadsheet I’m making. The spreadsheet represents a years roster for 8 people, broken into 4 tabs - where each tab represents 3 months of the roster. Each person is represented in the roster by their initials.
CHALLENGE ONE
I'd please like help to create a formula that uses the SUMIF command (or better, if available) that sums 2 different but regularly repeating groups of rows, in a long list of rows. I have attached a screen grab of a short portion of the spreadsheet - and the summary table in which I've calculated the values manually. It is these values I’d like the formula to create automatically.
I’d like the Summary table to find the number of times each person appears in Col 1, broken into 2 groups :
(a) number of times a given person appears for red outlined cells (ie Tues-Thurs inclusive)
(b) number of times a given person appears for green outlined cells (ie Fri-Sun inclusive)
If the empty rows between each week is a problem, it can be removed - however I find it handy to help create a visual delineation between weeks.
CHALLENGE TWO
It would be amazing if the user can be alerted to the existence of a given person in Cols 1-4, for a given date, if that same person’s initials appear in the ‘Unavailable’ column.
Prior to creating the roster, all persons’ unavailable dates would be noted in Column G (“Unavailable”) by entering their initials. It could be there are several unavailable people on the same date - perhaps they could be entered in the same cell, separated by a comma?
For example, person AG is marked as unavailable in cell G5 for Mon 2 Jan 2023. When the roster creator enters AG into cell C5 (ie tries to enter AG into the roster for Mon 2 Jan, a day for which she is marked as unavailable), the roster creator is alerted to this via Column H (“Alert”), as cell H5 turns bright green - or displays a text string such as “ALERT!” if a colour change is not possible.
The ultimate would be if the actual cell within columns B-E would change colour (or similar) upon the roster creator entering a person marked as unavailable - but I understand if that’s too tricky given what I’m trying to do in Challenge One!
So - there we have it! I’ll be so grateful if one of the Numbers wizards can solve this/these challenges for me!
Matthew
Auckland, NZ
MacBook Pro Apple Silicon