excel multiplication and sub total

luvbite38

Active Member
Joined
Jun 25, 2008
Messages
368
Hi guys,

It may be a most stupid question, you guy may ever came across.

I have cost of items in row 3 and then underneath, I have bunch of sold products under each item types / location. see example below pls.

existing:
A B C D
apple banana grapes Total
£40.00 £30.00 £70.00

9000 4 00 2300 £533,000.00
20000 4000 1 £920,070.00


current I am using this formula

=(A4*A$2+B4*B$2+C4*C$2)

Now my issue is that someone can add the items in this spreadsheet, I will have to manually add the refs in the formula. Is there a way I can optimise this formula and using the dynmic range. so if someone inserts a column formula in total will automaically include it in formula??

Any help pls

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
First, you can simplify your formulas with SUMPRODUCT, and I think this will also solve your problem:

=SUMPRODUCT(A4:C4,A2:C2)
 
Upvote 0
Thanks mate,

Really appreciate it

but how can add a dynamic range, so if a column is add, it automatically adjust the range in the formula.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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