I have two sheets.
Income (Sheet1):
A | B | C
Job number | Amount | Net
1 | 100 |
2 | 200 |
3 | 100 |
4 | 60 |
5 | 100 |
6 | 100 |
7 | 100 |
8 | 100 |
And
Outcome (Sheet2):
A | B | C
Job number | Amount | Title
1 | 5 | Stationery
2 | 15 | Printer ink
2 | 10 | et
2 | 10 |
4 | 20 |
6 | 30 |
8 | 10 |
8 | 10 |
How can I write a formula for Sheet1 Column C, to sum values of Sheet2 Column B, where Sheet2 ColumnA is equal to the job number found in the corresponding Sheet1 Column A? That way I can deduct this amount from the income amount, the result being as below:
Income (Sheet1)
(Working shown next to desired result)
A | B | C
Job number | Amount | Net
1 | 100 | 95 (100 - 5)
2 | 200 | 165 (200 - 15 - 10 - 10)
3 | 100 | 100 (100 - nothing)
4 | 60 | 40 (60 - 20)
5 | 100 | 100 (100 - nothing)
6 | 100 | 70 (100 - 30)
7 | 100 | 100 (100 - nothing)
8 | 100 | 80 (100 - 10 - 10)
Its nearly this question Count cells based on a comparison with value in the same row of another column but not quite... !