CountIF Closed Workbook

Pardeep

New Member
Joined
Nov 26, 2014
Messages
3
Hi,

I've read the previous posts however none have really been able to fix the problem I'm having.

I have a shared spreadsheet that colleagues use daily (MAILBOX LOG), however I want a master spreadsheet that will pull data from each worksheet withing the MAILBOX LOG worksheet.


The current COUNTIF I have is:

=COUNTIF('J:\Business Support\Mailbox Spreadsheet\[Mailbox Log.xlsx]November'!G:G,"Right of Withdrawal")

This will only wok when the workbook is open

I've read previous posts and assumed the following would work:
=COUNTIF[('J:\Business Support\Mailbox Spreadsheet\[Mailbox Log.xlsx]November!$G$1:$G$500,"Right of Withdrawal")

but I get the error message saying the formula the formula doesnt start with an Underscore or Letter

ANY HELP?!!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

Try:

=COUNTIF('J:\Business Support\Mailbox Spreadsheet\[Mailbox Log.xlsx]November'!$G$1:$G$500,"Right of Withdrawal")
 
Upvote 0
COUNTIF, a range-processing function, does not work with closed books. You need an array-processing formula:

=SUMPRODUCT(('J:\Business Support\Mailbox Spreadsheet\[Mailbox Log.xlsx]November!$G$1:$G$500="Right of Withdrawal")+0)
 
Upvote 0
Hi,

Thanks for the replies. It seems to still be pulling up the same error message:

Reasons for thsi can include:
The name does not begin with a letter or an underscore
the name contains a space or other invalid characters
the name conflicts with an Excel built-in name or the name of another object in the workbook


do you guys think its easier to maybe have a graph to pull the data from the closed workbook?
 
Upvote 0
Hi,

Thanks for the replies. It seems to still be pulling up the same error message:

Reasons for thsi can include:
The name does not begin with a letter or an underscore
the name contains a space or other invalid characters
the name conflicts with an Excel built-in name or the name of another object in the workbook


do you guys think its easier to maybe have a graph to pull the data from the closed workbook?

=SUMPRODUCT(('J:\Business Support\Mailbox Spreadsheet\[Mailbox Log.xlsx]November'!$G$1:$G$500="Right of Withdrawal")+0)
 
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,396
Members
448,891
Latest member
tpierce

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