# Counting number of occurences of a date

#### cranfss

##### New Member
I have a column A with:
11/2/2005
11/2/2005
11/3/2005
11/3/2005
11/8/2005
11/8/2005

How do I count the number of occurences of each date so that is looks like this:

11/2/2005
11/2/2005 2
11/3/2005
11/3/2005 2
11/8/2005
11/8/2005
11/8/2005 3

Thanks.

### Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

#### eliW

##### Well-known Member
Hi

This what I get with a most simple Pivot table:
DATE in Row field and Count of DATE in DATA field.

Eli
Book1
ABCDE
1DATE
211/02/2005
311/02/2005CountofDATE
411/03/2005DATETotal
511/03/200511/02/20052
611/08/200511/03/20052
711/08/200511/08/20052
8GrandTotal6
9
גיליון1

#### lenze

##### Legend
Note, you can also group your dates by days (7 days for a week), Months, or Years.Might be useful

lenze

#### Joe4

##### MrExcel MVP, Junior Admin
Let's say your data is in the range A1:A7, then put this formula in B1 and copy down for all rows:

=IF(A1<>A2,COUNTIF(A\$1:A\$7,A1),"")

#### cranfss

##### New Member
Thanks for the replies!

Eli, I like the pivot table but I am unable to access any cell except a1. Can you email the spreadsheet to me?

Thanks.

Thank you Lenze

Replies
9
Views
133
Replies
7
Views
372
Replies
9
Views
191
Replies
0
Views
233
Replies
19
Views
2K

1,171,280
Messages
5,874,816
Members
433,075
Latest member
DRubio

### 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?

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