quemuenchatocha
Board Regular
- Joined
- Aug 4, 2021
- Messages
- 50
- Office Version
- 365
- 2019
- Platform
- Windows
Dear beast regards
I am working with some figures on the number of people in a country, classified according to sex. I want to carry out sums taking into account specific age groups, for example Men between 2 and 10 years old (Men_2 - Men 10).
I have tried with SUMIFS and SUMPRODUCT but I have not been successful in the calculation (I do not know in which aspects I am making mistakes), instead I have tried with SUM(SUMIF) and I have obtained a result, only that it is an operation that is quite extensive, since if I decide to incorporate a very long age range, I would have to write each one of the criteria in the formula, and this would be quite long.
Is there a simpler formula to perform this calculation?
I appreciate your valuable input and comments.
PST: I don't know if it is also possible to use the FILTER function, in order to get the same results as required.
I am working with some figures on the number of people in a country, classified according to sex. I want to carry out sums taking into account specific age groups, for example Men between 2 and 10 years old (Men_2 - Men 10).
Libro1 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | |||
1 | GENDER | Men_0 | Men_1 | Men_2 | Men_3 | Men_4 | Men_5 | Men_6 | Men_7 | Men_8 | Men_9 | Men_10 | Men_11 | Men_12 | Men_13 | Men_14 | Men_15 | Men_16 | Men_17 | Men_18 | Men_19 | Men_20 | ||
2 | TOTAL | 389.339 | 389.438 | 389.552 | 389.755 | 390.127 | 390.648 | 391.370 | 392.272 | 393.584 | 395.161 | 397.190 | 399.724 | 402.697 | 406.195 | 410.047 | 413.983 | 417.904 | 421.494 | 424.678 | 426.956 | 427.880 | ||
3 | GENDER | Women_0 | Women_1 | Women_2 | Women_3 | Women_4 | Women_5 | Women_6 | Women_7 | Women_8 | Women_9 | Women_10 | Women_11 | Women_12 | Women_13 | Women_14 | Women_15 | Women_16 | Women_17 | Women_18 | Women_19 | Women_20 | ||
4 | TOTAL | 371.789 | 371.891 | 372.035 | 372.283 | 372.657 | 373.224 | 373.986 | 374.956 | 376.344 | 378.044 | 380.150 | 382.719 | 385.890 | 389.509 | 393.634 | 398.101 | 402.694 | 407.236 | 411.759 | 415.629 | 418.405 | ||
5 | ||||||||||||||||||||||||
6 | SUMIFS | SUM(SUMIF) | SUMPRODUCT | |||||||||||||||||||||
7 | Men: 0 - 12 | 0 | 5.110.857 | ? | ||||||||||||||||||||
8 | Women: 0 - 10 | 0 | 4.117.359 | ? | ||||||||||||||||||||
Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B7 | B7 | =SUMIFS(B2:V2,B1:V1,"Men_0",B1:V1,"Men_12") |
C7 | C7 | =SUM(SUMIF(B1:V1,{"Men_0";"Men_1";"Men_2";"Men_3";"Men_4";"Men_5";"Men_6";"Men_7";"Men_8";"Men_9";"Men_10";"Men_11";"Men_12"},B2:V2)) |
B8 | B8 | =SUMIFS(B4:V4,B3:V3,"Women_0",B3:V3,"Women_10") |
C8 | C8 | =SUM(SUMIF(B3:V3,{"Women_0";"Women_1";"Women_2";"Women_3";"Women_4";"Women_5";"Women_6";"Women_7";"Women_8";"Women_9";"Women_10"},B4:V4)) |
I have tried with SUMIFS and SUMPRODUCT but I have not been successful in the calculation (I do not know in which aspects I am making mistakes), instead I have tried with SUM(SUMIF) and I have obtained a result, only that it is an operation that is quite extensive, since if I decide to incorporate a very long age range, I would have to write each one of the criteria in the formula, and this would be quite long.
Is there a simpler formula to perform this calculation?
I appreciate your valuable input and comments.
PST: I don't know if it is also possible to use the FILTER function, in order to get the same results as required.