Counting number of occurences of a date

cranfss

New Member
Joined
Oct 11, 2006
Messages
2
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
Joined
Mar 2, 2002
Messages
1,936
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
Joined
Feb 18, 2002
Messages
13,690
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
Joined
Aug 1, 2002
Messages
64,627
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Oct 11, 2006
Messages
2
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.
 

eliW

Well-known Member
Joined
Mar 2, 2002
Messages
1,936
my pleasure! but you forgot to mention your Email address!
 

Forum statistics

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

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
Top