SUMPRODUCT not working properly

In my workbook there is a small example table of what I am trying to use.

The test data runs from B2 through to AE23

Column B and Column C have resource numbers in them.

Column D-AE have hours per day.

The SUMPRODUCT should take the value from column B, divide it by the sum of column B,C to get a percentage, then multiply it by the hours per day from column D through AE to get a daily total.

The second SUMPRODUCT should do the same, but use column C divided by the sum of B,C to get a percentage then multiply it by the hours per day from column D through AE to get a daily total.

Help.....
SUMPRODUCT.xlsx
DougDodgeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
It sounds what you want is:

=SUMPRODUCT($B2:$B23,D2:D23)/SUM($B2:$C23)

and

=SUMPRODUCT($C2:$C23,D2:D23)/SUM($B2:$C23)

This latter in column D with give 4 * 10 / 63.

Without knowing whether that is truly what you want, I cannot go any further. Is that the right answer?
0
 
DougDodgeAuthor Commented:
Sorry, not even close.

For Column D values and "MW" it should use:
B2/(SUM(B2,C2)*D2 = 0
B3/(SUM(B3,C3)*D3 = 0
B4/(SUM(B4,C4)*D4 = 0
B5/(SUM(B5,C5)*D5 = 0
B6/(SUM(B6,C6)*D6 = 0
B7/(SUM(B7,C7)*D7 = 0

all the ways down....

For Column D values and "WD" it should use:
C2/(SUM(B2,C2)*D2 = 0
C3/(SUM(B3,C3)*D3 = 0
C4/(SUM(B4,C4)*D4 = 0
C5/(SUM(B5,C5)*D5 = 0
C6/(SUM(B6,C6)*D6 = 0
C7/(SUM(B7,C7)*D7 = 40

All the way down....

Column E values and "MW" it should use:

B2/(SUM(B2,C2)*E2 = 0
B3/(SUM(B3,C3)*E3 = 0
B4/(SUM(B4,C4)*E4 = 0
B5/(SUM(B5,C5)*E5 = 0
B6/(SUM(B6,C6)*E6 = 0
B7/(SUM(B7,C7)*E7 = 0

All the ways down.....

Column E values and "WD" it should use:

C2/(SUM(B2,C2)*E2 = 20
C3/(SUM(B3,C3)*E3 = 0
C4/(SUM(B4,C4)*E4 = 0
C5/(SUM(B5,C5)*E5 = 0
C6/(SUM(B6,C6)*E6 = 0
C7/(SUM(B7,C7)*E7 = 40

All the way down.....
0
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
let's concentrate on

C7/(SUM(B7,C7)*D7 = 40

B7=0, C7=4 and D7=10

So, according to your formula, you have

4/(4+0)*10. This equals 10, not 40.

Would you please clarify what you want.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
DougDodgeAuthor Commented:
Sorry, you are right Phillip.... It has been a very long day.... 10 is correct.
0
 
Ejgil HedegaardCommented:
As I understand it, you want to calculate the percentage for each row, then multiply that with the value in column D, and finally add the values.
Try this array formula for MW (D25)
=SUM((IFERROR($B$2:$B$23/($B$2:$B$23+$C$2:$C$23)*D2:D23,0)))

And the similar for WD (D26)
=SUM((IFERROR($C$2:$C$23/($B$2:$B$23+$C$2:$C$23)*D2:D23,0)))

The formulas must be entered with Ctrl+Shift+Enter
See sheet
SUMPRODUCT.xlsx
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
You can use:
 
=SUMPRODUCT($B2:$B23,D2:D23,1/($B2:$B23+$C2:$C23+0.000000000001))
 
and
 
=SUMPRODUCT($C2:$C23,D2:D23,1/($B2:$B23+$C2:$C23+0.000000000001))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.