Count Help - a column of different dates I need to compact into how many of each date exists

Iotasigma

New Member
Joined
Jun 12, 2018
Messages
2
Hello everyone, first time poser. I read the FAQ and i searched and searched but I could never get the words right to get the answer.

I have a column of cells with a range of dates and times:

for example:[TABLE="width: 106"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]5/11/2018 8:22[/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]5/15/2018 8:24[/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]5/18/2018 7:48[/TD]
[/TR]
[TR]
[TD="align: right"]5/18/2018 9:23[/TD]
[/TR]
</tbody>[/TABLE]

I need the function that looks at the entire row and tells me how many cells contain 5/11 and 5/15 etc... I need it to disregard the time in the cell. and just give me the number of times the specific data appears. For example in the numbers above 5/11/18 would be 1, 5/15/18 would be 1 and 5/18/18 would be 2.

Thank you for any help.

-Jon
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You layout is not clear from your post, but perhaps you can adapt the following. Assuming your posted values are in cells A1 through A4, put this formula in cell B1 and copy it down...

=SUMPRODUCT(--(INT(A$1:A$4)=INT(A1)))
 
Upvote 0
Rick,
Would you please be able to take the above for me one step further.
I entered the formula and then copied it down but the total number occurrences for each date appeared the same number of time so if a date had 5 occurrences then the number 5 appeared in the 5 date locations.
Could you please tell me how I can enter the count just against the first occurrence of each unique date.
Thank you I appreciate any assistance.

Robert
 
Upvote 0
@ xerxers


If you are trying to count unique occurrences of dates say in A1:A10...

=SUM(IF(FREQUENCY(A1:A10,A1:A10),1))


Otherwise, try to elaborate your question by posting a small sample along with the desired result.
 
Upvote 0
DATE CLOSED
Column C Column D

11/01/18
11/01/18
11/01/18
11/01/18
11/01/18 5
11/02/18
11/02/18
11/02/18
11/02/18
11/02/18
11/02/18
11/02/18 7
11/05/18
11/05/18
11/05/18 3

So the above is found in Column C. I would like to add a column "D" and in that column total how many times a date appears in column C, but I only want that total to appear once in column D on the last occurrence of the new date.
Does that help and or make sense.

By the way thank you very much for responding I appreciate it.

Robert
 
Last edited:
Upvote 0
In D2 enter and copy down...

Either:

=IF(COUNTIFS($A$2:$C2,$C2)=COUNTIFS($C$2:$C$16,$C2),COUNTIFS($C$2:$C$16,$C2),"")

Or:

=IF(C2<>C3,COUNTIFS($C$2:$C$16,$C2),"")

The latter requires that entries are grouped.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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