How to calculate percentage if we have different rows for same resource

Davesh Garg

Board Regular
Joined
Jun 3, 2014
Messages
59
Hi,

Can someone please help in identifying the percentage formula. Table is below:

1st Criteria
Here if we are taking out the percentage of different resources then they are the sum of their unique (Actuals / NAH)
For Eg: If we require the percentage, then it should be the sum of
A. Actual of resource "A"+Actual of resource "B" + Actual of resource "C" + Actual of resource "D" + Actual of resource "E" = 32
B. NAH of resource "A" + NAH of resource "B" + NAH of resource "C" + NAH of resource "D" + NAH of resource "E" = 52

Percentage = A / B = 32/52 = 61.54%

And if we add up the columns then our percentage is not same. It is Sum of Actuals (61) / Sum of NAH (108) = 56.48%

2nd Criteria

If we need to calculate the percentage for VP whose value is X, then the correct percentage for unique resource is =32 / 52 = 61.54%
however, if we add the rows whose VP's value is X, then our calc is showing = 42/71 = 59.15%

Request if anyone can provide a formula which can be evaluated as per the criteria selected in column G2:I2 from data A1:E12

Let me know if anyone require any other information.

Thanks in advance.

ABCDEGHIJ
1VPClientName of resourceActualNAHVPClientName of resource%
2X1A69XFormula
3Y2A69
4X3A69
5X1B58
6Y2B58
7X3C410
8Z4C410
9X5C410
10Y6C410
11X3D710
12X1E1015

<tbody>
</tbody>
 
Hi,

Thanks for helping me out, however Pivot is not required for my criteria. What I require is any formula, if possible.

Thanks,
Dave
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
VPCLIENTRESOURCEHOURS
xA533VPx
yB234CLIENTa
zA335RESOURCE5
xB444
yA555
zB134
xA265
yB354
zA44333
xB534
yA145
zB256
xA333it can be done with an equation
yB434that covers 1 box completed
zA535any 2 completed
xB144all 3 completed
yA255
zB334the formula is
xA465
yB554=IF(AND(J12="",J13=""),SUMPRODUCT((D12:D35)*(C12:C35=J14)),IF(AND(J12="",J14=""),SUMPRODUCT((D12:D35)*(B12:B35=J13)),
zA143IF(AND(J13="",J14=""),SUMPRODUCT((D12:D35)*(A12:A35=J12)),IF(AND(J12="",J13<>"",J14<>""),SUMPRODUCT((D12:D35)*(B12:B35=J13)*(C12:C35=J14)),
xB234IF(AND(J13="",J12<>"",J14<>""),SUMPRODUCT((D12:D35)*(A12:A35=J12)*(C12:C35=J14)),IF(AND(J14="",J12<>"",J13<>""),SUMPRODUCT((D12:D35)*(B12:B35=J13)*(A12:A35=J12)),
yA345IF(AND(J12<>"",J13<>"",J14<>""),SUMPRODUCT((D12:D35)*(A12:A35=J12)*(B12:B35=J13)*(C12:C35=J14)),"no selection")))))))
zB456

<colgroup><col span="2"><col><col span="5"><col><col span="17"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,458
Messages
6,130,757
Members
449,588
Latest member
accountant606

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top