Complex Sumproduct Formula Not Translating to Google Sheets

psycho_psanka

New Member
Joined
Jun 17, 2010
Messages
6
I'm trying to convert a model that has a complex sumproduct formula:

"=SUMPRODUCT($AX14:CB14,N(OFFSET($BX$4:DB$4,0,COLUMN(DB$4)-COLUMN($BX$4:DB$4))))"

And once the column count gets to 31 (range of AX->CB...BX->DB), I get the following error:
"SUMPRODUCT has mismatched range sizes. Expected row count: 1. column count: 31. Actual row count: 1, column count: 30."

When I copy the formula one cell to the left (range of AX -> CA...BX -> DA), the formula works fine:

SUMPRODUCT($AX14:CA14,N(OFFSET($BX$4:DA$4,0,COLUMN(DA$4)-COLUMN($BX$4:DA$4))))

I'd love any suggestions for a fix! Thanks in advance.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
In order for the SUMPRODUCT function to work the array sizes must be the same.

The COLUMN(DA$4)-COLUMN($BX$4:DA$4) is always equal to 30, while $ax14:cb14 is a range of 31 columns, which is why going $ax14:ca14 works because that is only 30 columns.

I don't know the context of your data, but the best way to fix it is to ensure that the array sizes are equal.

Don't know if that's much help.


 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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