Hi,
Table 1 has many rows with costs in & in Table 2 I want to sum up these costs.
Originally Table 1 did not have currencies in, so I was able to use the below INDEX MATCH formula to do this:
=SUM(INDEX(2:6,N(IF(1,{1,2,3,2,5})),MATCH(C9,1:1,0))).
Now I want to split the total of these 5 rows, depending on currency (in col A).
I have come up with the below red formula - which works... But I need it to be more automatic (i.e. in case another row is inserted between row 2 and row 6, I don't want to have to update the INDEX & N formula each time).
Overall, my aim is that in cell C10, I want the formula to return all values in rows 2-6, where the date in row 9 matches the date in row 1, and the currency in col A matches too.
Please help
Thanks in advance,
Lisa
Table 1 has many rows with costs in & in Table 2 I want to sum up these costs.
Originally Table 1 did not have currencies in, so I was able to use the below INDEX MATCH formula to do this:
=SUM(INDEX(2:6,N(IF(1,{1,2,3,2,5})),MATCH(C9,1:1,0))).
Now I want to split the total of these 5 rows, depending on currency (in col A).
I have come up with the below red formula - which works... But I need it to be more automatic (i.e. in case another row is inserted between row 2 and row 6, I don't want to have to update the INDEX & N formula each time).
Overall, my aim is that in cell C10, I want the formula to return all values in rows 2-6, where the date in row 9 matches the date in row 1, and the currency in col A matches too.
Please help
Thanks in advance,
Lisa