Hi
I have data laid out as follows
I'm trying to create a formula in another worksheet which will have the following output
I need a formula which will:
but I don't fully understand how this is working which also means I can't figure out sum part.
I'd appreciate some advice on:
I have data laid out as follows
Record date | Paid date | Income 1 | Income 2 |
| |
---|---|---|---|---|---|
Investment 1 | |||||
30/06/2022 | 12/07/2022 | 0 | 5 | 10 | |
Subtotal | 0 | 5 | 10 | ||
Investment 2 | |||||
31/12/2021 | 12/01/2022 | 5 | 10 | 20 | |
30/06/2022 | 12/07/2022 | 5 | 4 | 6 | |
Subtotal | 10 | 14 | 26 |
I'm trying to create a formula in another worksheet which will have the following output
Investment name (manually entered) | Income 1 (formulas) | Income 2 + 3 (formulas) |
---|---|---|
Investment 1 | 0 | 15 |
Investment 2 | 10 | 40 |
I need a formula which will:
- Look up the investment name in the first table
- Find the "Subtotal" line related to this line. Please note, this isn't an excel subtotal line rather, the data is simple called "subtotal"
- From the subtotal line, return a particular income figure (so Income 1 in table 2 above) or sum of multiple columns (income 2 and 3 in table 2 above).
Excel Formula:
=INDEX(INDEX(C1:C7,MATCH(G1,A1:A7,0)):C7,MATCH("Subtotal",INDEX(A1:A7,MATCH(G1,A1:A7,0)):A7,0))
I'd appreciate some advice on:
- How to achieve the Income 2+3 formulas in table two
- Some explanation as to how the Income 1 formula index/match works.