My current project is analysis of difference between two sets of numbers. I will try to leave all the boring details out and get to the good stuff.
Basically this is for resource allocations. Each resource has a plan and allocation within three types of work. My task is to find what the difference is between the plan and the allocation and track "movement".
So, let's say John Smith is planned to have 25% in type a, 25% in type b and 50% in type c. John Smith is then allocated 100% in type c, meaning the difference will be -25%, -25% and 50% respectively.
For all intents and purposes this is already half done. I have the plans and allocations as well as the differences. What I need is a formula which will track this movement, in the case of John smith, it would be that type a gave 25% to type c and type b gave 25% to type c. Except, it will be for approximately 320 resources.
The issue I am running into is that if, for instance, I am trying to find the total that type a gave to type c I also need to consider that type a could have given type b a portion and type c a portion.
Here is an example of the data...
<TABLE style="WIDTH: 394pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=524><COLGROUP><COL style="WIDTH: 81pt; mso-width-source: userset; mso-width-alt: 3949" width=108><COL style="WIDTH: 31pt; mso-width-source: userset; mso-width-alt: 1499" width=41><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 34pt; mso-width-source: userset; mso-width-alt: 1645" width=45><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2121" width=58><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 34pt; mso-width-source: userset; mso-width-alt: 1645" width=45><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1718" width=47><COL style="WIDTH: 32pt; mso-width-source: userset; mso-width-alt: 1572" width=43><COL style="WIDTH: 29pt; mso-width-source: userset; mso-width-alt: 1426" width=39><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: lime; WIDTH: 81pt; HEIGHT: 15pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl63 height=20 width=108>Resource Name</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 31pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=41>A Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 37pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=49>A Alloc.</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 34pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=45>A Diff</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 44pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=58>B Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 37pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=49>B Alloc</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 34pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=45>Bdiff</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 35pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=47>C Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 32pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=43>C Alloc</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 29pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=39>C Diff</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name1</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.40 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.40 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.60 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.30)</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name2</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.20 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.05)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.80 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.05 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name3</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.35 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.10)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.10 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.65 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.55 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.55)</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name4</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name5</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.50)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.25)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name6</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name7</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR></TBODY></TABLE>
I did a formula that would sum if A diff was less than 0 and C diff was greater than 0 but I am getting thrown off by Bdiff receiving a portion of adiff. I tried to subtract a sumif the bdiff was greater than 0, but it just gave me the wrong number.
Any help would be appreciated. So far I have tried sumifs, If/And and that's about it. Currently I am using an if statement to pull whether a number is positive or negative and manually saying whether and of the types gave or received and totalling those out, which is tedious and terribly inaccurate.
Basically this is for resource allocations. Each resource has a plan and allocation within three types of work. My task is to find what the difference is between the plan and the allocation and track "movement".
So, let's say John Smith is planned to have 25% in type a, 25% in type b and 50% in type c. John Smith is then allocated 100% in type c, meaning the difference will be -25%, -25% and 50% respectively.
For all intents and purposes this is already half done. I have the plans and allocations as well as the differences. What I need is a formula which will track this movement, in the case of John smith, it would be that type a gave 25% to type c and type b gave 25% to type c. Except, it will be for approximately 320 resources.
The issue I am running into is that if, for instance, I am trying to find the total that type a gave to type c I also need to consider that type a could have given type b a portion and type c a portion.
Here is an example of the data...
<TABLE style="WIDTH: 394pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=524><COLGROUP><COL style="WIDTH: 81pt; mso-width-source: userset; mso-width-alt: 3949" width=108><COL style="WIDTH: 31pt; mso-width-source: userset; mso-width-alt: 1499" width=41><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 34pt; mso-width-source: userset; mso-width-alt: 1645" width=45><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2121" width=58><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 34pt; mso-width-source: userset; mso-width-alt: 1645" width=45><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1718" width=47><COL style="WIDTH: 32pt; mso-width-source: userset; mso-width-alt: 1572" width=43><COL style="WIDTH: 29pt; mso-width-source: userset; mso-width-alt: 1426" width=39><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: lime; WIDTH: 81pt; HEIGHT: 15pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl63 height=20 width=108>Resource Name</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 31pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=41>A Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 37pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=49>A Alloc.</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 34pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=45>A Diff</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 44pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=58>B Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 37pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=49>B Alloc</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 34pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=45>Bdiff</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 35pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=47>C Plan</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 32pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=43>C Alloc</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: lime; WIDTH: 29pt; BORDER-TOP: blue 0.5pt solid; BORDER-RIGHT: blue 0.5pt solid" class=xl64 width=39>C Diff</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name1</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.40 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.40 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.60 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.30 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.30)</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name2</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.20 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.05)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.80 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.05 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name3</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.35 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.10)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.10 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.65 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.55 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.55)</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name4</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name5</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.50)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.25 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>(0.25)</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.75 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name6</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl65 height=20>name7</TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>1.00 </TD><TD style="BORDER-BOTTOM: blue 0.5pt solid; BORDER-LEFT: blue; BACKGROUND-COLOR: transparent; BORDER-TOP: blue; BORDER-RIGHT: blue 0.5pt solid" class=xl66 align=right>0.00 </TD></TR></TBODY></TABLE>
I did a formula that would sum if A diff was less than 0 and C diff was greater than 0 but I am getting thrown off by Bdiff receiving a portion of adiff. I tried to subtract a sumif the bdiff was greater than 0, but it just gave me the wrong number.
Any help would be appreciated. So far I have tried sumifs, If/And and that's about it. Currently I am using an if statement to pull whether a number is positive or negative and manually saying whether and of the types gave or received and totalling those out, which is tedious and terribly inaccurate.