Sumproduct with fixed columns

ck_1357

New Member
Joined
Dec 6, 2013
Messages
2
Hi!

Im new to excel and hopes that someone can help me with a problem regarding the sumproduct function.

I have three columns in my sheet1, column A and column B contain 1000 numbers.

Hence, column A goes from A1 to A1000 and column B from B1 to B1000.

In the first row of column C, i want to use sumproduct on A1:A5 with B1:B5.

My problem arises when I want to drag the formula down, in the second row of column C I want

to use sumproduct on A6:A10 with B6:B10 but the formula uses A2:A6 with B2:B6.

Is there a way to fix the ranges when I am using sumprodct so it takes "fixed" ranges like every fifth,

A1:A5 with B1:B5 , A6:A10 with B6:B10, A11:A15 with B11:B15 and so on.

Thanks a lot.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Perhaps better solutions, but for your ranges try (example for A):

INDIRECT("A"&((ROW()-1)*5)+1&":A"&((ROW()-1)*5)+5)
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,354
Members
449,155
Latest member
ravioli44

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