ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   countif when range to count is in a different workbook (https://www.excelbanter.com/excel-discussion-misc-queries/103748-countif-when-range-count-different-workbook.html)

KarenF

countif when range to count is in a different workbook
 
Hi,

I have a workbook which tracks when a certain person has applied for
funding. I have other separate workbooks for each type of funding, and when
someone applies, I need to check the master workbook and have a formula
return how many times their ID appears on the list.

This is my current formula:

=COUNTIF('[Applicant Information.xls]applicants''
applications'!$A$3:$A$65000,A6)

This works great when the Applicant Information.xls file is open, but causes
a #Value! error when it is not. Upon opening my specific funding worksheets
I update links but I keep getting an "Error - non-defined or non-rectangular
name" status when I check the source.

Any ideas? Should all countif formulae rely on an open workbook? All of my
other formulae relating to a closed workbook is now working fine.

If anyone could help, it would be much appreciated.

Thanks,

Karen.



Dave Peterson

countif when range to count is in a different workbook
 
There are a lot of functions that don't work with close workbooks:

=countif(), =sumif(), =indirect() are a few.

With the file open:

=sumproduct(--(
'[Applicant Information.xls]applicants''applications'!$A$3:$A$65000=A6))

And when you close the file, excel will add the path, but the formula will still
calculate correctly.

Remember that =sumproduct() can't use the whole column.







KarenF wrote:

Hi,

I have a workbook which tracks when a certain person has applied for
funding. I have other separate workbooks for each type of funding, and when
someone applies, I need to check the master workbook and have a formula
return how many times their ID appears on the list.

This is my current formula:

=COUNTIF('[Applicant Information.xls]applicants''
applications'!$A$3:$A$65000,A6)

This works great when the Applicant Information.xls file is open, but causes
a #Value! error when it is not. Upon opening my specific funding worksheets
I update links but I keep getting an "Error - non-defined or non-rectangular
name" status when I check the source.

Any ideas? Should all countif formulae rely on an open workbook? All of my
other formulae relating to a closed workbook is now working fine.

If anyone could help, it would be much appreciated.

Thanks,

Karen.


--

Dave Peterson

KarenF

countif when range to count is in a different workbook
 
Thanks again Dave.

Yet again, a problem solved!

It works fine.

Thanks for your help.

Take care,

Karen

"Dave Peterson" wrote:

There are a lot of functions that don't work with close workbooks:

=countif(), =sumif(), =indirect() are a few.

With the file open:

=sumproduct(--(
'[Applicant Information.xls]applicants''applications'!$A$3:$A$65000=A6))

And when you close the file, excel will add the path, but the formula will still
calculate correctly.

Remember that =sumproduct() can't use the whole column.







KarenF wrote:

Hi,

I have a workbook which tracks when a certain person has applied for
funding. I have other separate workbooks for each type of funding, and when
someone applies, I need to check the master workbook and have a formula
return how many times their ID appears on the list.

This is my current formula:

=COUNTIF('[Applicant Information.xls]applicants''
applications'!$A$3:$A$65000,A6)

This works great when the Applicant Information.xls file is open, but causes
a #Value! error when it is not. Upon opening my specific funding worksheets
I update links but I keep getting an "Error - non-defined or non-rectangular
name" status when I check the source.

Any ideas? Should all countif formulae rely on an open workbook? All of my
other formulae relating to a closed workbook is now working fine.

If anyone could help, it would be much appreciated.

Thanks,

Karen.


--

Dave Peterson



All times are GMT +1. The time now is 06:59 PM.

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