Simple Problem

jr4578

New Member
Joined
Feb 23, 2018
Messages
5
Hey,

Brand new to the forum and just trying to work out a budgeting problem.

Basically, I have (C4*B4) in C2. it works, obviously. But, in the same cell I want to add (C5*B5) + (c6*b6) etc etc all the way until (c85*b85). and then I need it to translate into D column. And henceforth until column AT (i.e. (AT4*b4), and then down to (AT85*B85))

I feel like there is a simple solution, but I've been working at it all day and cannot seem to find a proper way to do so, and have become more than frustrated numerous times. I can, of course, do it manually, but repeating this in 52 columns is going to drive me insane.

Sorry if I haven't explained well; again, I'm a little exasperated haha
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hello,

at the moment I have no possibility to test it, therefore only an idea:

Code:
C2: =sumproduct(C4:C85, B4:B85)

regards
 
Upvote 0
Fennek's Sumproduct suggestion should work just fine. Here's a cut down example:

C2: =SUMPRODUCT($B4:$B6,C4:C6) Copy formula to the right


Book1
ABCDEF
1
2TOTALS8.5193.523
3
40.501412
51.002512
62.0036110
Sheet1
 
Last edited:
Upvote 0
For some reason, I cannot get this formula to work, even with copy/paste.

I am using OpenOffice/Google Sheets, which is probably the reason. Any advice on how to translate it into these platforms?
 
Upvote 0
It should work exactly the same in Google Sheets. When you say that you can't get it to work, what exactly is happening? Are you getting error values, or perhaps incorrect results? In all columns?

When you say OpenOffice (and refer to platforms), do you mean that you're also using OpenOffice Calc?
 
Upvote 0
It tells me there's a formula parse error.

I use Google sheets mainly (because I like having access on my phone as well), but sometimes I'll use the open source "Excel" that Open Office has as a test run when I don't have internet.

In both (Google and Open Office) I get the same "Formula Parse Error"
 
Upvote 0
Sumproduct works fine for me in Google Sheets.

Did you try the example exactly as given?

If you modified the formula for your layout, can you please copy/paste the exact formula that you're trying to use?
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,856
Members
449,411
Latest member
adunn_23

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