Using Countif on closed workbooks

DaveSwanton77

New Member
Joined
Apr 15, 2002
Messages
39
Is is possible to use the countif statement on closed work books.

I would like to count the occurances of certain entries on books that are closed to give a grand total.

It calculates fine when the workbook in question is open. But when the workbook is closed the result changes to #value!.

I don't have the problem with the counta statement, but this will just give me the product of the whole column.

Thanks in advance

Dave
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
DaveSwanton77 said:
Is is possible to use the countif statement on closed work books.

No. Consider using...

{=COUNT(IF(range=value,1))}

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For more on array formulas see the Excel Help topic for "About array formulas and how to enter them".
 
Upvote 0
re:

Mark,

Thanks for the reply but unfortunately this does not work

The formula I have entered is

{=COUNT(IF([RemarksSPBOs.xls]Details!$AF:$AF="CL",1))}

which gives a total of 0

Whereas

=COUNTIF([RemarksSPBOs.xls]Details!$AF:$AF,"CL")

gives a total of 57
 
Upvote 0
By definition Details!$AF:$AF isn't a range. A range consists of individual cell references joined by a colon :)). For example, Details!AF2:AF100. Details!$AF:$AF is a reference to all cells in column AF. This is explained in the Excel Help topic for "About cell and range references".
 
Upvote 0
This didn't seem to work for me... the formula I am using is =COUNTIF([April 02,2015.xlsx]Dog Food'!$B$4:$B$200="*as*") and it comes up with a value of 12 but when I use {=COUNT(IF([April 02,2015.xlsx]Dog Food'!$B$4:$B$200="*as*",1))} it gives me a value of 0. I'm trying to count the amount of times as comes up in that range but there are times it appears with other letters and / in front of or behind it hence the *
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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