+ Reply to Thread
Results 1 to 7 of 7

count how many of any variable are in a worksheet?

  1. #1
    Registered User
    Join Date
    04-11-2005
    Posts
    4

    count how many of any variable are in a worksheet?

    hello all, i have a call logger program that exports all data to a dbf file which i then use excel to display, my question is how can i search for the most frequently used numbers in any specific column? below is an example of the data pulled out! (i have removed the phone numbers)

    09/02/2005 12:32 00/01/1900 00:00 899 9999 9 90123456 0 VCE 150 83 16 1 OG 150 82264 A
    09/02/2005 12:32 00/01/1900 00:00 888 0101 999999 0 VCE 150 51 16 1 IC 150 82259 A
    09/02/2005 12:29 00/01/1900 00:04 821 9999 9 90028563 0 VCE 150 61 16 20 OG 150 82249 A
    09/02/2005 12:34 00/01/1900 00:00 840 0104 999999 0 VCE 150 568 16 11 IC 150 82274 U
    09/02/2005 12:34 00/01/1900 00:01 883 9999 999999 0 VCE 150 199 16 1 IC 150 82279 A
    09/02/2005 12:32 00/01/1900 00:03 884 0101 9 904577 0 VCE 150 94 16 1 OG 150 82268 A
    09/02/2005 12:36 00/01/1900 00:00 841 0104 9 9078888 0 VCE 150 94 16 1 OG 150 82281 A
    09/02/2005 12:32 00/01/1900 00:04 821 9999 999999 0 VCE 150 199 16 8 IC 150 82255 A
    09/02/2005 12:37 00/01/1900 00:00 821 9999 999999 0 VCE 150 156 16 8 IC 150 82287 A
    09/02/2005 12:36 00/01/1900 00:00 883 9999 9 9087888 0 VCE 150 29 16 1 OG 150 82283 A
    09/02/2005 12:38 00/01/1900 00:00 892 9999 9 9088522 0 VCE 150 83 16 1 OG 150 82292 A
    09/02/2005 12:41 00/01/1900 00:00 883 9999 851 0 VCE 150 0 0 8 IN 150 82294 A
    09/02/2005 12:43 00/01/1900 00:00 891 9999 500 0 VCE 150 0 0 5 OG 150 82306 A
    09/02/2005 12:43 00/01/1900 00:00 821 0104 999999 0 VCE 150 67 0 8 IC 150 82306 A
    09/02/2005 12:43 00/01/1900 00:00 891 0104 999999 0 VCE 150 0 16 3 IC 150 82306 A
    09/02/2005 12:42 00/01/1900 00:02 884 0101 999999 0 VCE 150 22 16 1 IC 150 82302 A

  2. #2
    Registered User
    Join Date
    02-18-2005
    Posts
    26
    trim the line with functions like left(), right(), mid() then sort. Viola!!

    cheers

  3. #3
    Registered User
    Join Date
    04-11-2005
    Posts
    4
    Quote Originally Posted by d61helix
    trim the line with functions like left(), right(), mid() then sort. Viola!!

    cheers
    thanks i dont quite understand, so i can use that command to go through and tell me which numbers apear most frequently

  4. #4
    Registered User
    Join Date
    02-18-2005
    Posts
    26
    1st of all to help me understand, do the phone numbers appear on just one column or are they together with rest of data? thxs

  5. #5
    Registered User
    Join Date
    04-11-2005
    Posts
    4
    in three of the colums, one being extension number (3 digit) one being dialled numbers (3-15digits) and fianally the incoming number (11 digits max (9999 is witheld))

    the analysis will only be on one colum at a time though so i'd like to know the most called number, number that dialled in most etc

  6. #6
    Registered User
    Join Date
    02-18-2005
    Posts
    26
    heres a rough solution, i think the way to do it is probably sort out the numbers and consolilate them then count them by using loop, my sub is to allow user to select the column and tells which number is most frequent in the column and how many times...but theres a catch..haha..if theres more than 1 number which is most freq, my sub will only return the 1st counted one, so ill jus leave it for you to figure it out.

    Cheers

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-11-2005
    Posts
    4

    Talking

    you are indeed a clever person, although can i make it exclude 9999 and 999999 ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1