Countif on closed workbook data

chris0b

New Member
Joined
May 10, 2023
Messages
5
Office Version
  1. 2016
Hi all,
I have been trying to work out how to amend a COUNTIF formula to work on data in a closed workbook but not been very successful - this is a bit beyond my Excel capability!
I saw on a few posts where people had amended their COUNTIF to COUNT(IF( but I couldn't get this to work

I have several different versions of this formula looking up different codes but this is the easiest/shortest one so if I can work out what to change on this one I might be able to do the others

This is the original formula, if anybody can tell me how to edit it to work on a closed workbook that would be amazing
=IF(COUNTIF($AB$1:$AB$2,O24)=1,IF(COUNTIF('\filepath\[ORP.xlsx]ORP'!$H$8:$H$358,LEFT(N24,3))=1,TRUE,FALSE),TRUE)
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi & welcome to MrExcel.
You cannot use countif(s) on a closed workbook, try
Excel Formula:
=IF(COUNTIF($AB$1:$AB$2,O24)=1,IF(sumproduct(--('\filepath\[ORP.xlsx]ORP'!$H$8:$H$358=LEFT(N24,3)))=1,TRUE,FALSE),TRUE)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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