Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 998

Why is Excel not counting time with COUNTIF?

$
0
0

I have a table like the following:

ABC
12324/05/2024 09:42:54
12324/05/2024 09:42:5500:00:01
12324/05/2024 09:42:5600:00:01
12324/05/2024 09:42:5700:00:01

Where C is like =b2-b1. The sheet has over 100,000 rows.

What I want to do is count all the entries in C where the value is 00:00:01, but when I try COUNTIF(c1:c200000, "00:00:01") or COUNTIF(c1:c200000, TIMEVALUE("00:00:01")) or COUNTIF(c1:c200000, TIME(0,0,1)) I get 0.00, when I can easily see the value must be greater than one.

How should I be counting the time difference?

If it's important I'm using Excel for Microsoft 365.


Viewing all articles
Browse latest Browse all 998