+ Reply to Thread
Results 1 to 4 of 4

find number that doesnt exist among others.

  1. #1
    Registered User
    Join Date
    11-26-2006
    Posts
    2

    Post find number that doesnt exist among others.

    Hi!
    I have some sorting problems. I got a list with approximately 100-200 numbers...or more sometimes.

    I have to find out how many times, for an exampel, number 2 exists.
    And to take it a little bit further, i need to know wich numerbers that doesnt occur.

    To find the smallest number, lets say 2, is easy,and the largest...hmm. ok, 399.
    Then i need to list all the numbers inbetween, how many times they occur, and wich numbers that doesnt excist. Can thise be done?

    Kind regards!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by TheBean
    Hi!
    I have some sorting problems. I got a list with approximately 100-200 numbers...or more sometimes.

    I have to find out how many times, for an exampel, number 2 exists.
    And to take it a little bit further, i need to know wich numerbers that doesnt occur.

    To find the smallest number, lets say 2, is easy,and the largest...hmm. ok, 399.
    Then i need to list all the numbers inbetween, how many times they occur, and wich numbers that doesnt excist. Can thise be done?

    Kind regards!
    Hi.

    with numbers in A1:A10, the formula
    in B1

    =LARGE(A$1:A$10,ROW())

    in C1

    =IF(COUNTIF(B$1:B$10,B1)=1,"",COUNTIF(B$1:B$10,B1))

    in D1

    =IF(B1=B2,"",IF(B1=B2+1,"",B2+1&" - "&B1-1))

    should answer, as per the attached.

    Adjust the range for the rows you have and formula fill to suit your data.

    hth
    ---
    Attached Files Attached Files
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    11-26-2006
    Posts
    2

    That did it!

    Thanks a lot!

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by TheBean
    Thanks a lot!
    Hi,

    np, and thanks for the response.
    ---

+ 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