ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Refresh formula links to closed Workbooks (https://www.excelbanter.com/excel-worksheet-functions/216953-refresh-formula-links-closed-workbooks.html)

h2fcell

Refresh formula links to closed Workbooks
 
Hello,
Im trying to understand why some formulas, that point to other Workbooks,
dont update automatically in Excel 2007.
I have two workbooks €śtest€ť and €śWard 1€ť.
€śWard 1€ť is my source workbook.
In €śtest€ť I have the following three formulas in separate cells.
=+'C:\Work\[Ward 1.xlsm]Ward 1'!$P$37
=SUM('C:\Work\[Ward 1.xlsm]Ward 1'!$P$7:$P$37)
=COUNTIF('C:\Work\[Ward 1.xlsm]Ward 1'!$D$4:$N$4,"x")

The first two update automatically weather €śWard 1€ť is open or closed.
The last one updates only when €śWard 1€ť is open at the same time as €śtest€ť.
When €śWard 1€ť is closed, the third formula returns #VALUE!

No matter what I do in Data/Connections I cant get the third formula to
work while €śWard 1€ť is closed.

Any suggestions would be greatly appreciated.


Roger Govier[_3_]

Refresh formula links to closed Workbooks
 
Hi

Neither Sumif or Countif will work with closed workbooks.
Either construct an array formula using IF and COUNT or use SUMPRODUCT

=SUMPRODUCT(--('C:\Work\[Ward 1.xlsm]Ward 1'!$D$4:$N$4="x"))

Incidentally you do not need the + sign in your first formula, Simply
='C:\Work\[Ward 1.xlsm]Ward 1'!$P$37
will suffice

--
Regards
Roger Govier

"h2fcell" wrote in message
...
Hello,
Im trying to understand why some formulas, that point to other Workbooks,
dont update automatically in Excel 2007.
I have two workbooks €śtest€ť and €śWard 1€ť.
€śWard 1€ť is my source workbook.
In €śtest€ť I have the following three formulas in separate cells.
=+'C:\Work\[Ward 1.xlsm]Ward 1'!$P$37
=SUM('C:\Work\[Ward 1.xlsm]Ward 1'!$P$7:$P$37)
=COUNTIF('C:\Work\[Ward 1.xlsm]Ward 1'!$D$4:$N$4,"x")

The first two update automatically weather €śWard 1€ť is open or closed.
The last one updates only when €śWard 1€ť is open at the same time as €śtest€ť.
When €śWard 1€ť is closed, the third formula returns #VALUE!

No matter what I do in Data/Connections I cant get the third formula to
work while €śWard 1€ť is closed.

Any suggestions would be greatly appreciated.



All times are GMT +1. The time now is 01:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com