CountIF Date Range and Criteria in different Sheet

PCloadletter

New Member
Joined
May 14, 2020
Messages
15
Office Version
  1. 365
  2. 2016
  3. 2010
Platform
  1. Windows
Hello,

I'd like help with a formula in counting a specific date range and criteria on a different sheet.

Example :

Sheet 1 is named Complaints and will have in column A all the dates
in column C of Complaints will be a range of locations, RH for example.

In Sheet 2, I'd like to be able to count all the "RH"s that appear between a certain date range (eg : September 1st, 2020 to September 30th, 2020)

Thank you in advance for any help!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
=COUNTIFS(Sheet1!A:A,">=1/9/2020",Sheet1!A:A,"<=30/9/2020",Sheet1!B:B,"RH")

Or you could put the criteria in sheet 2
Sheet 1
Book3
AB
1DateRegion
29/1/20
39/2/20RH
49/3/20
59/4/20
69/5/20RH
79/6/20
89/7/20
99/8/20
109/9/20
119/10/20
129/11/20
139/12/20
149/13/20
159/14/20RH
169/15/20
179/16/20
189/17/20
199/18/20
209/19/20
219/20/20
229/21/20
239/22/20
249/23/20
Sheet1


Sheet 2
Book3
ABCDEF
1RegionDate StartDate EndCountORCount Criteria
2RH9/1/209/16/2033
Sheet2
Cell Formulas
RangeFormula
D2D2=COUNTIFS(Sheet1!A:A,">=1/9/2020",Sheet1!A:A,"<=30/9/2020",Sheet1!B:B,"RH")
F2F2=COUNTIFS(Sheet1!A:A,">="&B2,Sheet1!A:A,"<="&C2,Sheet1!B:B,A2)
 
Upvote 0
Thank you Etaf, odd - the first formula for D2 doesn't work but the F2 one does.

For D2 it just returns a 0.
 
Upvote 0
you only need to use 1 , and F2 is better as you can change the variables in the cell rather than in the formula
Not quite sure why its not working on your version of excel 365 same as mine
 
Upvote 0
Possibly a format issue
you could try =COUNTIFS(Sheet1!A:A,">="&DATEVALUE("1/9/2020"),Sheet1!A:A,"<="&DATEVALUE("30/9/2020"),Sheet1!B:B,"RH") and use the date format for your excel / region settings
 
Upvote 0
Thanks again Etaf! I didn't realize how picky Excel was...I changed the dates in the formula to 1/SEP/2020 and it worked!
 
Upvote 0

Forum statistics

Threads
1,214,886
Messages
6,122,093
Members
449,064
Latest member
Danger_SF

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