COUNTIF on closed Workbooks ??

smrogers

New Member
Joined
Jan 4, 2010
Messages
26
Hi,

I am trying to count the values of sickness for each employee based on their annualised attendance sheet.

We have an attendance map for the 12 months which shows all the different types of absence an individual has.

I want to in a different spreadsheet count the values of "S" in these closed workbooks, which will in effect give me the number of sickness occurances for each month, by employee.

The formula works fine if I have the workbook I am wanting to query open but I need to be able to query about 160 individual spreadsheets for all of our employees.

Workbook open Formula
e.g. =COUNTIF('[employees_name.xlsm]Attendance Map'!$I$10:$J$40,"s")/2

I have tried a number of methods to try get this to work with the workbook closed.

Workbook closed Formula
e.g. COUNT(IF('T:\TimeSheets\Attendance Sheets 2011\department\[employee_name.xlsm]Attendance Map'!$C$10:$D$40,"s"))/2

But I can't seem to get the correct data out ?

Has anyone got any experience on doing a countif on a closed workbook ?

Any help or pointers would be greatley appreciated.

Thanks in advance.

Steve
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
COUNTIF requires that the workbook is open. Try:

=SUMPRODUCT(--('[employees_name.xlsm]Attendance Map'!$I$10:$J$40="s"))/2
 
Upvote 0
hi,

thanks for your response.....

I have been having a play with this and seem to have got the following to work.....

=SUMPRODUCT(--('T:\TimeSheets\Attendance Sheets 2011\department\[employee_name.xlsm]Attendance Map'!$I$10:$J$40="S"))

So thanks for your help......

Cheers

Steve

:)
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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