Link to home
Start Free TrialLog in
Avatar of aasikolo
aasikolo

asked on

Excel =countif wont work on external workbooks that are closed.

Good Afternoon,

I have a summary sheet in a separate workbook with the following function:

=COUNTIF('T:\CenterDocumentSystem\[CDS_Document List.xls]AED'!$E$2:$E$13,"<"&TODAY())

When the workbook specified in the formula is closed, I receive a #VALUE! error.

Is there a way to count the cells in the range and criteria  I'm interested in when the workbook is closed?

If so, please provide the syntax.

Thank you.

aasikolo
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

User Sumproduct that won't produce an error if the referenced workbook is closed.
Change your formula to this....

=SUMPRODUCT(--('T:\CenterDocumentSystem\[CDS_Document List.xls]AED'!$E$2:$E$13<TODAY()))

Open in new window

Avatar of aasikolo
aasikolo

ASKER

sktneer,

Thank you for your quick response.

I took one parameter for granted and failed to mention that the range has blank cells.

The formula you provided works except it is also counting the blank cells in the range.

I am locked out of the worksheet in the formula.

please advise further.

Thank you

aasikolo.
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent Solution.  Thank you!
You're welcome aasikolo! Glad I could help.