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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,215,896
Messages
6,127,626
Members
449,391
Latest member
Kersh82

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