I am facing a challenge with my work schedule data, as it is laid out horizontally. I am trying to calculate the total hours in the schedule based on various criteria such as the person's name, their available hours, shift, and the machine they are assigned to. The layout of the data can be seen in the attached picture.
My goal is to sum the total hours by machine, shift, and week number. For example, if the shift is 1, the machine is 300, and the week number is 40 (top row), the total should be 8 hours.
I have attempted using regular sumifs, experimented with sumproduct which I am not very familiar with, tried working with all columns vs just one column, and even created named ranges, but I am still encountering errors. I do not have much experience with arrays, but I thought that might be a solution too.
https://i.sstatic.net/0Gp3g.jpg
Any assistance would be highly appreciated! I am currently learning TypeScript, so if implementing that could offer a solution, I am open to exploring that option as well.
Thanks!!!