COUNTIFS formula.

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
Hey guys. I have the hardest time with getting formulas to work the way I want. I've got a list of timestamps in Column "C", and a list of dates in Column "N" (starting in row 5, 1/1/2018,1/2/2018 etc.). In column "O" I want to count how many timestamps from column C fall on the date from column N. The tricky part is that my date rollover time is 6:00AM. So for instance if the timestamp in column C is "2/8/2018 04:00 AM" it should be counted as 2/7/2018. The formula I tried in column O is: =COUNTIFS(C:C,">="&Day(N5)+6/24,C:C,"<"&Day(N5+1)+6/24). All it's giving me is 0, and in my data it should be 4. What am I doing wrong here?

Here's just a small example of what it should look like.

C
N
O
2/8/2018 04:00
2/7/2018
1
2/8/2018 07:30
2/8/2018
3
2/8/2018 13:45
2/9/2018
1
2/9/2018 02:15
2/10/2018
2/9/2018 10:35
2/11/2018

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Re: Need a bit of help with this COUNTIFS formula.

Try:

=COUNTIFS(C:C,">="&N1+6/24,C:C,"<"&N1+30/24)
 
Upvote 0
Re: Need a bit of help with this COUNTIFS formula.

Try:

=COUNTIFS(C:C,">="&N1+6/24,C:C,"<"&N1+30/24)

Still calculating 0

Edit: Oh, nevermind. It did work. I didn't realize you took out the "DAY" function. Thank you so much.
 
Last edited:
Upvote 0
Re: Need a bit of help with this COUNTIFS formula.

Then id imagine column C is text and not true dates. Highlight column C, press Data, Text to Columns and then Finish.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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