Useing data from defferent workbook

emukiss10

Board Regular
Joined
Nov 17, 2017
Messages
201
Hello,

I have a little problem. I have a large statistic table in one WB and in a different WB references to the first one. When I open my second WB i see #ARG ! in every cell, but when I open both the values are displaying properly.

Can I somehow fix it so that values would be correct if only second WB was opened?

Best Regards
W.
 
Not tested, but you could try this instead, note: you'll probably need to translate SUMPRODUCT to your local language.

Code:
=SUMPRODUCT([STAT.xlsm]Licznik!$T$2:$T$50000;--([STAT.xlsm]Licznik!$R$2:$R$50000=$A$4);--([STAT.xlsm]Licznik!$B$2:$B$50000=C$2);--([STAT.xlsm]Licznik!$J$2:$J$50000>=0+"2017-09-01");--([STAT.xlsm]Licznik!$J$2:$J$50000<=0+"2017-09-30"))
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Can You tell me what "--" does in this formula?

Hi, it converts the array of TRUE / FALSE values that are returned from the logical tests to 1's and 0's.

If you do an internet search for "Excel + double unary + sumproduct" you should be able to dig out some more detailed explanations.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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