I have two tables
TABLE 1: Unit (Column 1): aa; bb; cc; dd, Reliability (Column 2): 90%; 40%; 100%; 2%
TABLE 2: Prod (Column 1): A; B; C; A; A, Unit (Column 2): aa; bb; cc; bb; dd, Tonnes (Column 3): 10; 20; 30; 40; 30
For product A, how do I calculate the total amount produced from units aa, bb and dd, taking into account the reliability in a single formula?
The calculation for tonnes of A is clear: 10 * 90% + 40 * 40% + 30 * 2%
but it is difficult to do this when the data is in a random order as mine is.
I suspect that SUMPRODUCT or SUMIF may be required. I'm quite good at Excel and genuinely think this is impossible so good luck.
EDIT: I must state that I want to use a single formula, no additional columns to facilitate the calculation.
Any help on this would be greatly appreciated.