Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Performing SUMPRODUCT, SUMIF with two different tables

$
0
0

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.


Viewing all articles
Browse latest Browse all 88854


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>