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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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,224,823
Messages
6,181,176
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