I need a help please,
I have 2 tables: one has days an employee worked on the project/proposal in a month(Jan, Feb etc.), and the other has employee rates. I need to multiple matching rates and Jan days where all the criteria are same in both table, and then show the sums if Type: "Project" and Year "2018". I need to do this sum for each month separately, but If I find how to do it for one then rest should be simple :)[n/v] means no value.
Table 1
Year | Type | Project | Employee | Jan(days) | Feb(days)
2018 | Project | Apple | John N | 6 | 7
2018 | Project | Apple | Alex T | [n/v] | 8
2017 | Proposal | Banana | Tim C | 8 | [n/v]
2017 | Proposal | Banana | Sena I | 9 | 6
2018 | Project | Kiwi | John N | [n/v] | 6
2018 | Project | Kiwi | Yen T | 4 | 5
Table 2
Year | Type | Project | Employee | Rate
2018 | Project | Apple | John N | 30
2018 | Project | Apple | Alex T | 40
2017 | Proposal | Banana | Tim C | 20
2017 | Proposal | Banana | Sena I | 30
2018 | Project | Kiwi | John N | 10
2018 | Project | Kiwi | Yen T | 40
I can do this with SUMPRODUCT() if I have both rates and days in the same table;
The formula I used if both columns are in the same table is:
=IFERROR(SUMPRODUCT(((Table[Year]= D2)(Table[Type]="Project")(Table[Jan]>0))*(Table[Rate]*Table[Jan]) ),"")
but with 2 separate tables, it doesn't return the correct value.
Thanks in advance