COUNTIFS Referencing another workbook

elliston80

New Member
Joined
Feb 3, 2017
Messages
3
I have 2 spreadsheets, one is a master file and the other is a calendar where I want to look up and count the number of rows that match 2 criteria. First criteria is a specific date and the second criteria is text beginning with "Email". Below is the formula I have so far. It works as long as the source spreadsheet (master file) is open, however, if I open the calendar spreadsheet without opening the master file, I get a #VALUE ! error. I have read up on this and apparently this function can't reference closed workbooks.

Can someone help me convert this formula to a format that will reference my master file even if it is closed?

Notes:
1. "Activity" is a named range
2. "Date" is a named range

=COUNTIFS('2018 Supplier Marketing Master Plan.xlsm'!Activity,K15&"*",'2018 Supplier Marketing Master Plan.xlsm'!Date,"1/11/18")
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Maybe this?
(untested)
=sumproduct(--('2018 Supplier Marketing Master Plan.xlsm'!Activity=K15&"*"),--('2018 Supplier Marketing Master Plan.xlsm'!Date="1/11/18"))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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