SUMPRODUCT with closed workbook

JamesonMH

Board Regular
Joined
Apr 17, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I get it that SUMIF(S) doesn't work with closed workbooks. Normally, SUMPRODUCT works fine in such scenarios. Except, if I have many lookup values. I can't figure out an easy way to resolve other than a very long/ugly SUMPRODUCT.

E.g.

Stores to sum salesLocation of sales data (many rows)
Store 1Closed workbook
Store 3"
Store 4
Store 7
Store 10
Store 11
Store 12
Etc... "

<tbody>
</tbody>

If it were in the same workbook, I'd use a {SUM(SUMIFS....)) }.

Again, if I SUMPRODUCT the above, it would be massive since I'd have to use separate arrays for each individual store.

Any ideas?

Thanks

James
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
=SUMPRODUCT(SumRange,--ISNUMBER(MATCH(ConditionRange,ConditionList,0)))

sums a range where the values of a condition range match a list of conditions.
 
Upvote 0
=SUMPRODUCT(SumRange,--ISNUMBER(MATCH(ConditionRange,ConditionList,0)))

sums a range where the values of a condition range match a list of conditions.

Aladin - you came through, again. Thank you this works perfectly!
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,035
Members
449,092
Latest member
ikke

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