Hello guys!
I have the following table:
test.jpg
My ultimate goal is to derive a formula on column "V" (TOTAL in green) to give me the results
I have there and are based on the following premises:
- Companies A and B have to allocate 100% of the costs of their own employees plus the percentage
imported from the other company (the other company exported to it). These costs have to be allocated
on the Cost Centres CC-A1 to CC-A5 (if company A) or CC-B1 to CC-B5 (if company B) in row 3.
- When a company export some costs, it also has to allocate the same percentages on the "mirror" Cost Centres
in row 4 (CC-A101 to CC-A105 and CC-B101 to CC-B105).
Hence, I need a formula to give me (in column "V"): All costs allocated on table "Company A Cost Centres
Allocation" plus whatever is allocated on table "Company B Cost Centres Allocation" ONLY when column E
(export to B) is different than 0%.
Likewise, the formula should also cover the counterpart situation which is: All costs allocated on table
"Company B Cost Centres Allocation" plus whatever is allocated on table "Company A Cost Centres Allocation"
ONLY when column M (export to A) is different than 0%.
This would be something like:
=(IFERROR(INDEX($F$16:$J$16,MATCH($U3,$F$3:$J$3,0)),"0")) + (IFERROR(INDEX($N$16:$R$16,MATCH($U3,$N$18:$R$18,0)),"0"))
Obviously the "+" is not right. I tried to concatenate these the 2 statements above with several functions but for
whatever reason I can't make it work. Once I have it concatenated it wouldn't be difficult to repeat if for the
counterpart using column C (values A or B) as logical test in an IF function but my problem is really the sintax
to put the two togheter.
Regards,
Ricardo
Bookmarks