Count number of unique days in a range not withstanding different timestamp

singcbl

Well-known Member
Joined
Feb 8, 2006
Messages
520
I am trying to find a formula that will enable to count the number of unique days in a list.
I have a table with one column showing the date with a timestamp. I wanted to count the number of days in this column. Dates with the different timestamp will still be counted as the same day. For example, the result from the data below should be 2 instead of 3.

27/8/2018 12:40:00 PM
28/8/2018 8:50:00 AM
28/8/2018 1:00:00 PM
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
See if this works:

=SUM(IF(FREQUENCY(IF(LEN(A2:A10)>0,INT(A2:A10)),INT(A2:A10))>0,1))

CTRL-SHIFT-ENTER
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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