May 15 2019 10:01 PM
Hi!
I want to create a point-calendar system for a schedule that I'm creating for my team. I'm new to excel, and my many google searches led me to be more confused. Here's what I'm trying to create:
The bottom table is a calendar, and each day is assigned a number of points. Each person can pick whichever shift they want to take on any day. In the image, Tony decided to take a Monday shift (Week 1), a Wednesday shift (Week 2), and a Saturday shift (Week 3). This gives Tony a total of 4 points for the month.
Is there a way to create this, through a series of formulas, where I can simply put in a name into the calendar and it will automatically calculate the total number of points in another table?
Any tips, help, and suggestions are appreciated. Thank you!
May 15 2019 10:43 PM
May 15 2019 11:45 PM
SolutionI have modified the layout of your data. In the attached file, the formula in B4, copied down rows, is:
=SUMPRODUCT((B$13:H$17=A4)*B$11:H$11)
May 16 2019 06:21 AM
Wow! This is exactly what I was looking for. Thank you so much!
May 17 2019 08:05 AM
I sketched out a potential solution yesterday morning but the got side tracked.
The worksheet formula reads
= SUM(assigned)
where the points assigned is, in turn, given by
= (Calendar=Name) * TRANSPOSE(Points)
The reason for the named formula (visible in Name Manager) is to overcome Excel's tendency to break up array calculation with implicit intersection. Other ways of preventing the implicit intersection step are 1. To use Ctrl+Shift+Enter, 2. To use a limited number of functions, including SUMPRODUCT, that process arrays correctly.
May 17 2019 08:12 AM
Transposing the points table simplifies both the formula and the UI design!
May 15 2019 11:45 PM
SolutionI have modified the layout of your data. In the attached file, the formula in B4, copied down rows, is:
=SUMPRODUCT((B$13:H$17=A4)*B$11:H$11)