Sumproduct and offset issues

Status
Not open for further replies.

thyriel

New Member
Joined
Sep 24, 2019
Messages
8
Hi,

I managed to have certain cells of my sheet1 reference others from sheet2 If a condition was met by using sumproduct. I managed to get this reference by using offset as I wanted to automate it by having it index numbers every 4 columns. it went smoothly while I was using no column offset with the following formula:


=SUMPRODUCT(--('Generation Summary View'!$C$10:$C$17=Oweninny!$<wbr style="font-family: Arial, Helvetica, sans-serif; font-size: small;">B31),(OFFSET('Generation Summary View'!$L$10,0,0,8,1)))

However, when i tried to have it offset every 4 columns it gives me a value error. The modified formula is this:

=SUMPRODUCT(--('Generation Summary View'!$C$10:$C$17=Oweninny!$<wbr>B31),(OFFSET('Generation Summary View'!$L$10,0,(COLUMN(A1)*4)-<wbr>4,8,1)))

for clarity purposes, Oweninny is sheet1 and Generation Summary View is sheet2, the data i'm trying to get is the numbers from column L 10:17 from sheet2 and the condition is that the numbers on column C on sheet2 match those on column B on sheet1.

As I said, the first formula works flawlessly but when I actually try to make it offset every 4th row it shows an error.

thanks

****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">=SUMPRODUCT(--('Generation Summary View'!$C$10:$C$17=Oweninny!$<wbr style="font-family: Arial, Helvetica, sans-serif; font-size: small;">B31),(OFFSET('Generation Summary View'!$L$10,0,0,8,1)))</body>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Status
Not open for further replies.

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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