A B C
1 Report Line Data Type Value
2 1 a 10
3 1 b 20
4 1 c 30
5 2 a 40
6 2 b 50
7 2 c 60
8 3 a 70
9 3 b 80
10 3 c 90
E F
1 Report Report Line
2 1 1
3 1 3
4 2 2
5 2 3
Hi,
in the above example, the first table shows report lines of which each can belong to one or more reports. The second table shows which report line belongs to which reports.
How do I summarize all rows in column C where data type is "a" for the lines that belong to report 2 in the table given in E:F? This should be 40+70=110.
I would like to do it without referencing any criteria ranges outside these two tables, one formula in one cell. Tried searching everything I could think of in match, index, sumifs, sumproduct...
Many thanks.