Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need help similar to a histogram

Greetings,


I am trying to analyze some data that looks like this:
Time Flag
14:30:02 0
14:30:16 0
14:30:32 0
14:30:32 0
14:30:48 0
14:30:48 0
14:30:56 0
14:30:57 0
14:31:09 0
14:31:10 1
14:31:14 1
14:31:15 0
14:31:20 0
14:31:23 0
14:31:37 0
14:31:41 0
14:31:45 0
14:31:57 0
14:31:57 0
14:31:59 1
14:32:14 0
14:32:16 0
14:32:20 0
14:32:23 0
14:32:27 0
14:32:28 0
and so on....


From this data I want to make a kind of histogram of how many flags appeared
in a given time range, say every 2 minutes. So for example, a sum of the
flags each 2 minute period.


Thanks and cheers

Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need help similar to a histogram

would this

14:31:09 0
14:31:10 1
14:31:14 1
14:31:15 0


be one flag or two?

--
Regards,
Tom Ogilvy

"DonD" wrote in message
...
Greetings,


I am trying to analyze some data that looks like this:
Time Flag
14:30:02 0
14:30:16 0
14:30:32 0
14:30:32 0
14:30:48 0
14:30:48 0
14:30:56 0
14:30:57 0
14:31:09 0
14:31:10 1
14:31:14 1
14:31:15 0
14:31:20 0
14:31:23 0
14:31:37 0
14:31:41 0
14:31:45 0
14:31:57 0
14:31:57 0
14:31:59 1
14:32:14 0
14:32:16 0
14:32:20 0
14:32:23 0
14:32:27 0
14:32:28 0
and so on....


From this data I want to make a kind of histogram of how many flags

appeared
in a given time range, say every 2 minutes. So for example, a sum of the
flags each 2 minute period.


Thanks and cheers

Don



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need help similar to a histogram

If each 1 is a flag,

In D1 for example, I would put in my start time
in D2
=D1+TimeValue("00:02")


In E1 I would put in

=Countif(A:A,"="&D1.B:B)-Countif(A:A,"="&D2,B:B)

Now select E1 and copy it to E2.

Select D2:E2 and drag fill down the column.

Then you can do your histogram on this data.

--
Regards,
Tom Ogilvy



"DonD" wrote in message
...
Greetings,


I am trying to analyze some data that looks like this:
Time Flag
14:30:02 0
14:30:16 0
14:30:32 0
14:30:32 0
14:30:48 0
14:30:48 0
14:30:56 0
14:30:57 0
14:31:09 0
14:31:10 1
14:31:14 1
14:31:15 0
14:31:20 0
14:31:23 0
14:31:37 0
14:31:41 0
14:31:45 0
14:31:57 0
14:31:57 0
14:31:59 1
14:32:14 0
14:32:16 0
14:32:20 0
14:32:23 0
14:32:27 0
14:32:28 0
and so on....


From this data I want to make a kind of histogram of how many flags

appeared
in a given time range, say every 2 minutes. So for example, a sum of the
flags each 2 minute period.


Thanks and cheers

Don



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need help similar to a histogram

Thanks Tom.

dd

"Tom Ogilvy" wrote:

If each 1 is a flag,

In D1 for example, I would put in my start time
in D2
=D1+TimeValue("00:02")


In E1 I would put in

=Countif(A:A,"="&D1.B:B)-Countif(A:A,"="&D2,B:B)

Now select E1 and copy it to E2.

Select D2:E2 and drag fill down the column.

Then you can do your histogram on this data.

--
Regards,
Tom Ogilvy



"DonD" wrote in message
...
Greetings,


I am trying to analyze some data that looks like this:
Time Flag
14:30:02 0
14:30:16 0
14:30:32 0
14:30:32 0
14:30:48 0
14:30:48 0
14:30:56 0
14:30:57 0
14:31:09 0
14:31:10 1
14:31:14 1
14:31:15 0
14:31:20 0
14:31:23 0
14:31:37 0
14:31:41 0
14:31:45 0
14:31:57 0
14:31:57 0
14:31:59 1
14:32:14 0
14:32:16 0
14:32:20 0
14:32:23 0
14:32:27 0
14:32:28 0
and so on....


From this data I want to make a kind of histogram of how many flags

appeared
in a given time range, say every 2 minutes. So for example, a sum of the
flags each 2 minute period.


Thanks and cheers

Don




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
Histogram an Excel Discussion (Misc queries) 4 May 14th 10 02:31 PM
I was creating a histogram; now i have data but no histogram. ShannonMills3 Excel Worksheet Functions 0 June 14th 06 12:03 AM
How to Histogram w/o raw data but histogram Table on Excel 2005 Charts and Charting in Excel 1 February 1st 06 06:48 AM
Histogram pt 2 Brownsugar9686 Charts and Charting in Excel 4 April 28th 05 05:42 PM
Histogram Tom Ogilvy Excel Programming 3 October 13th 04 10:28 PM


All times are GMT +1. The time now is 05:03 AM.

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

About Us

"It's about Microsoft Excel"