Formula for COUNTIFS Exact Match in Range of Multiple Columns

igorteo

New Member
Joined
Nov 21, 2019
Messages
5
Hello.
I'm trying to find appropriate formula to count exact text in multiple columns where the criteria is the date range (between 2 dates). I have tried with =COUNTIFS(A2:A25,A32,C1:X25,">="&B30,C1:X25,"<="&B31) and the result is #VALUE! .
It is counting fine if the criteria range is in one column, but I need a variables.

Thank you,


A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
O​
P​
Q​
R​
S​
T​
U​
V​
W​
X​
SITELOCATIONIPR 1DATE COMPIPR 2DATE COMPIPR 3DATE COMPIPR 4DATE COMPIPR 5DATE COMPIPR 6DATE COMPIPR 7DATE COMPIPR 8DATE COMPIPR 9DATE COMPIPR 10DATE COMPIPR 11DATE COMP
NLCNLC WARDAK P1-Aug-19P7-Oct-19P13-Oct-19P22-Sep-19P30-Sep-19
NLCNTB WARDAKP2-Oct-19P2-Oct-19
NLCNLC WARDAK P1-Aug-19PP1-Sep-19P16-Sep-19P21-Sep-19P30-Sep-19
RMC 1NTB WARDAK9-Oct-195-Aug-19P30-Sep-19P15-Sep-19P19-Sep-19P30-Sep-19
RMC 2NTB WARDAK10-Sep-19P16-Sep-19P5-Sep-19P3-Oct-19
RMC 3NTB WARDAKP16-Sep-19P14-Sep-19
RMC 4NLC WARDAK P5-Sep-196-Aug-19P17-Aug-19P14-Sep-19P7-Sep-19P2-Oct-19
NLC5-Oct-191-Sep-19
NLC5-Aug-1925-Aug-19
NLC5-Oct-19
RMC 87-Aug-19
RMC 9
RMC 105-Aug-19
NLC9-Aug-1915-Aug-19
NLC
RMC 712-Aug-19
NLC6-Aug-195-Oct-19
NLC
RMC 65-Oct-1912-Aug-19
NLC6-Aug-19
NLC5-Aug-19
RMC 5
NLC
NLC7-Aug-19
8/1/20199/1/201910/1/2019
8/31/20199/31/201910/31/2019
NLC#VALUE!
RMC
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the MrExcel board!

For the future, any sample data would be easier to work with if you investigated the tool linked in my signature block below.

Does this, copied across & down, do what you want? If not, which answers are wrong, what should they be and why?
Note that my dates are in d/m/y format.

Book1
ABCD
301/08/20191/09/20191/10/2019
3131/08/201930/09/201931/10/2019
32NLC1077
33RMC000
Sheet2 (2)
Cell Formulas
RangeFormula
B32:D33B32=SUMPRODUCT(($A$2:$A$25=$A32)*($C$2:$X$25>=B$30)*($C$2:$X$25<=B$31))
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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