Excel Countifs Formula

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I am using the below formula in my sheet. The problem is that it does not work on a closed workbook.
The source workbook needs to be open in order for the formula to work.

=COUNTIFS('DATA ENTRY - INLINE.xlsm'!gsm_pc_weight_ref_no,B6,'DATA ENTRY - INLINE.xlsm'!gsm_pc_weight_date,">="&K16,'DATA ENTRY - INLINE.xlsm'!gsm_pc_weight_date,"<="&P16,'DATA ENTRY - INLINE.xlsm'!gsm_pc_weight_category,"GSM")


Is there any other formula which can replace the current formula - which works on a closed workbook.


Regards,

Humayun
 

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.
SUMPRODUCT works with closed files.

Maybe something like this
=SUMPRODUCT(--('file name'!Range1=B6),--('file name'!Range2>=K16),--('file name'!Range2<=P16),--('file name'!Range3="GSM"))

Range1, Range2 and Range3 must have the same size

M.
 
Last edited:
Upvote 0
Hi Marcelo,

Thanks for the reply....

The formula you provided is working PERFECT with a closed workbook.

Thanks :)
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,629
Members
452,661
Latest member
Nonhle

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