LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Track Maximum occurences in Array

Does anyone know of a function which allows you to track the maximum count of
items in an array? Lets say I have an array with repeating data (See below).
I want to be able to track which item occurs the most # of times. The
answer below would be 3 occurences of the letter "a". I know I could buld a
loop which tests each items against the data set and use a counter and temp
variable to track and store the Max# of occurences. But is there a
combination of functions that would do the same?

TheArray(0) = "a"
TheArray(1) = "b"
TheArray(2) = "a"
TheArray(3) = "c"
TheArray(4) = "c"
TheArray(5) = "d"
TheArray(6) = "a"

Thanks
 
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
Track Max of Matches across 2 columns in 2D Array ExcelMonkey Excel Programming 2 June 4th 08 03:24 PM
Referencing a row with a maximum value array? pete Excel Programming 1 May 23rd 08 06:35 PM
Count occurences in array with condition Val Excel Worksheet Functions 2 August 27th 06 04:22 PM
VB Newbie - Counting occurences in array SJC[_2_] Excel Programming 5 December 28th 05 02:38 PM
Can you identify the maximum value in an array? Brad Patterson Excel Programming 5 July 11th 03 12:08 AM


All times are GMT +1. The time now is 11:45 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"