Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Normaliziing date and counting # of of occurances

II am trying to review a log and determine how many events occurred on a
specific day.

There are 1000+ entries so I am trying to automate the counting.

the date format I as starting with is
5/22/2008 11:53

I am normalizing this using the following formula
=CEILING(R3,1)-1

Where R is the column that the date resides in.
This give me a result of 5/22/08

I then want to total for the different dates.

I have tried countif, sumif, and sumproduct but it does not seem to want to
count the data

=countif(Data_Range,A1) where A1=5/22/08
=sumif(Data_Range,A1,Data_Range) where A1=5/22/08
=sumproduct((Count=1)*(Data_Range=A1)) where A1=5/22/08

not sure if I am looking at a formula issue or a data issue. Am I having
problems because 5/22/08 is not really 5/22/08 but some thing else or
something else.

Any help would be appreciated. otherwise I have to count by hand.


Thanks

Jeff
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Normaliziing date and counting # of of occurances

If Data_Range contains the 'unnormalized' entries, then try
=COUNTIF(Data_Range,"=" & A1)-COUNTIF(Data_Range,"=" & A1+1)
This counts the number of entries that are on or after the date specified in
A1, then subtracts the number that are on or after the following date.
What's left is those that are on the date specified, regardless of what time
on that day.
What's not clear to me in your original approach is where your 'normalized'
data is being placed; does 'Data_Range' refer to the original data or the
normalized data?

"Jeff" wrote:

II am trying to review a log and determine how many events occurred on a
specific day.

There are 1000+ entries so I am trying to automate the counting.

the date format I as starting with is
5/22/2008 11:53

I am normalizing this using the following formula
=CEILING(R3,1)-1

Where R is the column that the date resides in.
This give me a result of 5/22/08

I then want to total for the different dates.

I have tried countif, sumif, and sumproduct but it does not seem to want to
count the data

=countif(Data_Range,A1) where A1=5/22/08
=sumif(Data_Range,A1,Data_Range) where A1=5/22/08
=sumproduct((Count=1)*(Data_Range=A1)) where A1=5/22/08

not sure if I am looking at a formula issue or a data issue. Am I having
problems because 5/22/08 is not really 5/22/08 but some thing else or
something else.

Any help would be appreciated. otherwise I have to count by hand.


Thanks

Jeff

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Normaliziing date and counting # of of occurances

Also, why =CEILING(R3,1)-1 and not just =INT(R3) ? ... unless you
particularly want a value of just 5/22/2008 in R3 to return 5/21/2008 ?
--
David Biddulph

"bpeltzer" wrote in message
...
If Data_Range contains the 'unnormalized' entries, then try
=COUNTIF(Data_Range,"=" & A1)-COUNTIF(Data_Range,"=" & A1+1)
This counts the number of entries that are on or after the date specified
in
A1, then subtracts the number that are on or after the following date.
What's left is those that are on the date specified, regardless of what
time
on that day.
What's not clear to me in your original approach is where your
'normalized'
data is being placed; does 'Data_Range' refer to the original data or the
normalized data?

"Jeff" wrote:

II am trying to review a log and determine how many events occurred on a
specific day.

There are 1000+ entries so I am trying to automate the counting.

the date format I as starting with is
5/22/2008 11:53

I am normalizing this using the following formula
=CEILING(R3,1)-1

Where R is the column that the date resides in.
This give me a result of 5/22/08

I then want to total for the different dates.

I have tried countif, sumif, and sumproduct but it does not seem to want
to
count the data

=countif(Data_Range,A1) where A1=5/22/08
=sumif(Data_Range,A1,Data_Range) where A1=5/22/08
=sumproduct((Count=1)*(Data_Range=A1)) where A1=5/22/08

not sure if I am looking at a formula issue or a data issue. Am I having
problems because 5/22/08 is not really 5/22/08 but some thing else or
something else.

Any help would be appreciated. otherwise I have to count by hand.


Thanks

Jeff



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting date occurances Kim Excel Worksheet Functions 3 June 17th 08 07:29 PM
Counting 7 and 8 occurances [email protected] Excel Discussion (Misc queries) 2 May 9th 07 02:59 AM
Counting Occurances Rusty Excel Discussion (Misc queries) 5 July 10th 06 08:29 PM
counting occurances SR89 Excel Worksheet Functions 6 June 28th 06 01:46 AM
Counting Date Occurances JerryBS Excel Worksheet Functions 1 March 6th 05 07:29 PM


All times are GMT +1. The time now is 01:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"