Sumproduct returning #Value! when linked to another workbook?

duboost

New Member
Joined
Apr 8, 2010
Messages
41
Hi,

I'm using a sumproduct formula to sum the numbers in a column based on criteria in other columns. For example...

A..........B..........C
Up.......On.........10
Up.......On.........15
Down...On.........20

=SUMPRODUCT(--(A2:A4="UP"),--(B2:B4="On"),--(C2:C4)

should return 25. This works fine if the data and sumproduct function are in the same workbook, but if they are in separate workbooks, sumproduct returns #Value!. Is sumproduct not able to do this when linked to other workbooks? I know if i cut out the last part of the function (C2:C4), it will give me a correct count (2) even when linked to another workbook, but when trying to get a sum of column C, it returns an error. Any ideas? Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
ok it seems to work only until u reach a certain number of rows. If I needed to do this for 4,000 rows, is there another way to calculate this if sumproduct won't allow me to calculate that many rows?
 
Upvote 0
ok nevermind lol. Apparently there was one cell in column C within the 4,000 that has a #value! rather than a number and that was causing the error with sumproduct...:rolleyes:
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,901
Members
452,948
Latest member
Dupuhini

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