Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bear
 
Posts: n/a
Default Finding the most frequent occurances

I have a worksheet in which the cells contain times followed by a 2
digit code. For example "2:30 AG". I was wondering if there is any way
to find the time that occures most, ignoring the 2 digit code.

The long term goal is to be able to determine at what times these
occurances happen and create a graph that represents those peak times.

  #2   Report Post  
RagDyer
 
Posts: n/a
Default Finding the most frequent occurances

You could try this:

First, use a "helper" column to extract the time.
With values starting in A1, enter this in B1:

=--LEFT(A1,LEN(A1)-3)

And copy down as needed.

Then, format a cell to "Time", and enter this formula:
=MODE(B1:B100)
Using the actual cell range that you used in ColumnB.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Bear" wrote in message
oups.com...
I have a worksheet in which the cells contain times followed by a 2
digit code. For example "2:30 AG". I was wondering if there is any way
to find the time that occures most, ignoring the 2 digit code.

The long term goal is to be able to determine at what times these
occurances happen and create a graph that represents those peak times.


  #3   Report Post  
Jim May
 
Posts: n/a
Default Finding the most frequent occurances

Hi RagDyer
I suppose the
=-- <<< does the work of converting the number
from a string to a number in one step. I
wasn't familiar with its use, but will henceforth,
Thanks,
Jim



"RagDyer" wrote in message
...
You could try this:

First, use a "helper" column to extract the time.
With values starting in A1, enter this in B1:

=--LEFT(A1,LEN(A1)-3)

And copy down as needed.

Then, format a cell to "Time", and enter this formula:
=MODE(B1:B100)
Using the actual cell range that you used in ColumnB.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Bear" wrote in message
oups.com...
I have a worksheet in which the cells contain times followed by a 2
digit code. For example "2:30 AG". I was wondering if there is any way
to find the time that occures most, ignoring the 2 digit code.

The long term goal is to be able to determine at what times these
occurances happen and create a graph that represents those peak times.




  #4   Report Post  
Bear
 
Posts: n/a
Default Finding the most frequent occurances

This worked thank you both very much!

  #5   Report Post  
Domenic
 
Posts: n/a
Default Finding the most frequent occurances

Here's an approach that will take ties into consideration...

Assuming that A2:A10 contains your data, try the following...

B2, copied down:

=LEFT(A2,LEN(A2)-2)+0

C2, copied down:

=IF(ISNA(MATCH(B2,$B$1:B1,0)),COUNTIF($B$2:$B$10,B 2),"")

D2, copied down:

=IF(N(C2),RANK(C2,$C$2:$C$10)+COUNTIF($C$2:C2,C2)-1,"")

E1: enter 1 (indicating you want the top occurring time or times)

F1:

=MAX(IF(C2:C10=INDEX(C2:C10,MATCH(E1,D2:D10,0)),D2 :D10))-E1

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER

G2, copied down:

=IF(ROWS($G$2:G2)<=$E$1+$F$1,INDEX($B$2:$B$10,MATC H(ROWS($G$2:G2),$D$2:$D
$10,0)),"")

Hope this helps!

In article .com,
"Bear" wrote:

I have a worksheet in which the cells contain times followed by a 2
digit code. For example "2:30 AG". I was wondering if there is any way
to find the time that occures most, ignoring the 2 digit code.

The long term goal is to be able to determine at what times these
occurances happen and create a graph that represents those peak times.



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
Totalling occurances in a column uzusan Excel Worksheet Functions 2 September 22nd 05 04:14 PM
Finding Duplicate Names from Different Lists... PokerZan Excel Discussion (Misc queries) 1 July 8th 05 09:58 AM
How to find the second most frequent number in a list? Sam Excel Worksheet Functions 0 March 25th 05 04:45 PM
finding the second largest number in a list bobf Excel Discussion (Misc queries) 1 February 16th 05 01:19 PM
How can i imput a formula in excel for finding the area of a regu. Rona Excel Discussion (Misc queries) 2 January 15th 05 08:17 PM


All times are GMT +1. The time now is 08:39 AM.

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"