COUNTIFS Date Cell Reference +-Days

FanofExcel18

Board Regular
Joined
Jun 7, 2018
Messages
65
Trying to figure out a Countifs formula to provide Something that is greater than 30 days but less than 90. Using a cell reference for the date.

Example: A1 = 1/6/2020, trying to figure out if its greater than 30 days
I've tried but can't figure it out:
=COUNTIFS(Sheet2!B:B,D2,Sheet2!C:C,">="&$A$1+30,Sheet2!C:C,"<"&$A$1+90)
=COUNTIFS(Sheet2!B:B,D2,Sheet2!C:C,">="&($A$1+30),Sheet2!C:C,"<"&($A$1+90))

Table:

1/6/2020​
PersonDateNameCount
John Smith1/4/2020 14:27John Smith
0​
John Smith1/4/2020 11:27Jane Doe
0​
Jane Doe1/4/2020 4:01
Jane Doe1/3/2020 20:02
Jane Doe11/20/2019 15:18
Jane Doe11/20/2019 13:10
John Smith11/20/2019 11:01
Jane Doe11/20/2019 10:02
Jane Doe11/20/2019 8:58
John Smith11/20/2019 8:40
Jane Doe11/20/2019 8:20
Jane Doe11/19/2019 23:01
John Smith11/19/2019 16:19
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
That formula works for me, are you sure that your dates are real dates & not text?
 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,913
Members
448,532
Latest member
9Kimo3

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