# Number of occurences by date

Hi All,

I have spreadsheet in column "A" I have a date/time stamp formatted like below,

1/13/14 12:00 AM

I need to count the number of occurrences for each day,

Thanks,
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
The easiest way is to select your data, insert pivot table, put the day as a row field, and as a data fields, then right click the row field and Group by day. This will give you a table with a count of occurrences by day.

Thomas

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
If you don't have different times and only days, you can skip the grouping part.
Commented:
this formula will count only the day elements
=COUNTIFS(\$A\$1:\$A\$36,">="&INT(A1),\$A\$1:\$A\$36,"<"&INT(A1+1))

but it will repeat the count for each date entry
Finance AnalystCommented:
Assuming list of dates and times in column A andseparate list of individual dates in column D:

=COUNTIFS(\$A\$3:\$A\$37,"<"&\$D3+1,\$A\$3:\$A\$37,">="&\$D3)

D3 being day to be counted.

Counts entries where value is less than next day and greater than or equal to current day. Time in excel is recognised as a decimal part of a day so does same as INT part of regmigrant's suggestion but puts date in separate column so no repeats.

Alternative, get round repeats using an IF statement comparing the date parts for movement to next day:

=IF(INT(\$A4)=INT(\$A3),"",COUNTIFS(\$A\$1:\$A\$38,">="&INT(A3),\$A\$1:\$A\$38,"<"&INT(A3+1)))

Puts count against last entry of each day.

Thanks
Rob H
Older than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.