nparsons75
Well-known Member
- Joined
- Sep 23, 2013
- Messages
- 1,256
- Office Version
- 2016
Hi, I have two tables, in two seperate worksheets. I will refer to them as table and table 2.
In table one I have a reference number in col A and a value (%) which i would like to show in col B.
Table 1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In Table 2 I have a unique reference number in col A, in col B I have a number that will match that of one of the references in col A of table 1. In col C I have a another % progress value.
Table 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Unique Reference[/TD]
[TD]Reference (to Table 1)[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]2[/TD]
[TD]15%[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]2[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2[/TD]
[TD]5%[/TD]
[/TR]
</tbody>[/TABLE]
From the two tables in seperate worksheets i need to calculate the total % using the reference number. So as an example, table one, when the correct formula is applied will look like the below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]0%[/TD]
[/TR]
</tbody>[/TABLE]
So, Table 1 needs to look at table 2, it will look to see if any reference in col B of table 2 are the same as the reference in table 1. If it is it will add up the sum of all those that match and return a result showing the sum of all percentages matching the reference as in example above.
I hope that makes some kind of sense and I thank you in advance for your support.
In table one I have a reference number in col A and a value (%) which i would like to show in col B.
Table 1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In Table 2 I have a unique reference number in col A, in col B I have a number that will match that of one of the references in col A of table 1. In col C I have a another % progress value.
Table 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Unique Reference[/TD]
[TD]Reference (to Table 1)[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]2[/TD]
[TD]15%[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]2[/TD]
[TD]30%[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2[/TD]
[TD]5%[/TD]
[/TR]
</tbody>[/TABLE]
From the two tables in seperate worksheets i need to calculate the total % using the reference number. So as an example, table one, when the correct formula is applied will look like the below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Reference[/TD]
[TD]% Progress[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]50%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]0%[/TD]
[/TR]
</tbody>[/TABLE]
So, Table 1 needs to look at table 2, it will look to see if any reference in col B of table 2 are the same as the reference in table 1. If it is it will add up the sum of all those that match and return a result showing the sum of all percentages matching the reference as in example above.
I hope that makes some kind of sense and I thank you in advance for your support.