Summary Question

xclaim

New Member
Joined
Dec 5, 2011
Messages
12
Office Version
  1. 365
I need a quick way to calculate hrs*rate for a period.
I normally do it with a formula like '=(E3*$D$3)+(E4*$D$4)'
but its not scalable and if i add rows in between the calculation is thrown off.
any easy way to do this ?

image1
https://ibb.co/bUW8B5
is my table

image2
https://ibb.co/fe2yB5
is the formula (not complete -- i woudl actually need to expand the formula to every row/user)

Pls help
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I think I see what you are wanting....

Try this formula in column "E" on the subtotal row;

=SUMPRODUCT(OFFSET($D$2,1,,COUNTA($C:$C),1),OFFSET(E$2,1,,COUNTA($C:$C),1))

Then copy it over to the right as far as you need to...

(When using the OFFSET formula to define your ranges, you can insert a row or delete a row and it will still work...)
 
Upvote 0
Perhaps I have misunderstood, but don't you just need something like this, copied across?


Book1
CDEFG
2rateweek1week2week3
3user120056
4user220063
5user32001
6user43002
7user5300
8user63005
9user7400
10user8400
11user94002
12280026001700
Totals
Cell Formulas
RangeFormula
E12=SUMPRODUCT($D3:$D11,E3:E11)
 
Upvote 0
Peter, I believe you are right.
It appears that the SUMPRODUCT formula is not effected by adding or deleting rows like a lot of formulas, I never noticed...
 
Upvote 0
Perhaps I have misunderstood, but don't you just need something like this, copied across?

CDEFG
2rateweek1week2week3
3user120056
4user220063
5user32001
6user43002
7user5300
8user63005
9user7400
10user8400
11user94002
12280026001700

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Totals

Worksheet Formulas
CellFormula
E12=SUMPRODUCT($D3:$D11,E3:E11)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

awesome - that works perfectly

i added to it and now this formula works perfectly for me

=SUMPRODUCT($C$6:$C$39,I6:I39)

thank you so much.
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,285
Members
449,218
Latest member
Excel Master

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