I have 3 tables. Table1 is a list of items w/ a sum attached to them.
Table 2 is a list of "official items" and a category.
Table 3 is a category that needs a sum.
i.e.
Table 1
A. | B |
---|---|
Parrot. | 3 |
Dog. | 5 |
Cat. | 2 |
lizard. | 1 |
Newt. | 1 |
Snake. | 3 |
Chicken. | 1 |
Frog. | 1 |
Table 2
A. | B |
---|---|
Parrot. | Bird |
Chicken. | Bird |
Cat. | Mammal |
Dog. | Mammal |
Snake. | Reptile |
Lizard | Reptile |
Table3
A. | B |
---|---|
Birds. | 4 |
Mammals. | 7 |
Reptiles. | 4 |
Other. | 2 |
I've learned that I can use an array w/ SUMIFS and IF Table2 B is Bird/Mammal/Reptiles to output those.
EDIT: the formula I'm using for table3 is =SUM(SUMIFS('Table1'!B:B,'Table1'!A:A, IF(Table2!B:B="Mammal",Table2!A:A)))
I am open to another formula if it makes life easier to achieve all 4 outcomes. Thanks!
What I am struggling with is how do I do the inverse. If none of the items in table2 match how do I sum them in other. Table1 is set to adjust depending on the answers given, so I need to ensure that the sum will compared table2 against table1 and then sum all of those on table1 that are not in table2 as other.