ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif referencing another WB (https://www.excelbanter.com/excel-discussion-misc-queries/119919-countif-referencing-another-wb.html)

John

Countif referencing another WB
 
Hi,

I use =COUNTIF('H:\Work\[Cases_Older_Than_One_Year.xls]131106'!S:S,"Closed")
When the WB is open it returns a value. When closed i get #VALUE!

Is this just the feature of this function in XL, if so, would anyone suggest
an alternative please?

Thanks

John




Dave Peterson

Countif referencing another WB
 
You could use:

=sumproduct
(--('H:\Work\[Cases_Older_Than_One_Year.xls]131106'!S1:S999="Closed"))

(all one line)

But you can't use the whole column (xl2003 and below, anyway).

John wrote:

Hi,

I use =COUNTIF('H:\Work\[Cases_Older_Than_One_Year.xls]131106'!S:S,"Closed")
When the WB is open it returns a value. When closed i get #VALUE!

Is this just the feature of this function in XL, if so, would anyone suggest
an alternative please?

Thanks

John


--

Dave Peterson


All times are GMT +1. The time now is 09:14 AM.

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