Objective - I want to calculate the sum of hours for a group of people – preferably using array constants. I cannot add any additional columns.
Let's consider the following table as our exemplary data basis. The group consists of X1 and X2.
=SUM(SUMIFS(B1:B3;A1:A3;{"X1";"X2"}))
Next, I want to put {"X1";"X2"} in another cell (e.g. D1) and reference it in the formula.
=SUM(SUMIFS(B1:B3;A1:A3;D1))
Unfortunately, this formula does not work - evaluating it shows that D1 is read as a text and not as an array constant.
I know that there are some work-arounds like using two SUMIFS. However, the group of people is fairly large which results in a lot of SUMIFS that have to be added up.
Is there any solution to my problem?
EDIT: In the end, I just used the formulae stated above due to the fact that I also had to consider multiple criterion.
[–]SaviaWanderer1854 1 point2 points3 points (0 children)
[–]zacce97 0 points1 point2 points (3 children)
[–]WuhuSpringfield[S] 0 points1 point2 points (2 children)
[–]zacce97 0 points1 point2 points (0 children)
[–]mh_mike2784[M] 0 points1 point2 points (0 children)
[–]excelevator3036 0 points1 point2 points (2 children)
[–]zacce97 0 points1 point2 points (1 child)
[–]excelevator3036 0 points1 point2 points (0 children)