+ Reply to Thread
Results 1 to 2 of 2

missing numbers list

  1. #1
    Registered User
    Join Date
    11-19-2008
    Location
    Earth
    Posts
    3

    missing numbers list

    I am looking to produce a spreadsheet that when importing a csv that contains 5 columns will look at colum #1 (or column A) and yield a list of numbers that are consecutive or have gaps - as an example for the import of column # 1, would be (1,2,3,5,8,10,11, 12, 13 ,25, 27, 28, 29,30,31,32, 33)

    so the resulting list would produce a list of the following:
    (1-3,5,8,10-13,25,27-33) OR a list of the missing numbers:
    (4,6-7,9,14-24,26)
    I would like to see the coding to obtain both if possible.

    Cactuskid
    Attached Files Attached Files

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867
    Good evening cactuskid

    ...and welcome to the forum
    Quote Originally Posted by Cactuskid View Post
    I am looking to produce a spreadsheet that when importing a csv that contains 5 columns will look at colum #1 (or column A) and yield a list of numbers that are consecutive or have gaps - as an example for the import of column # 1, would be (1,2,3,5,8,10,11, 12, 13 ,25, 27, 28, 29,30,31,32, 33).
    My addin, available via the link below has a utility that will return numbers missing from a sequential range, irrespective of whether or not the range is in order. Once installed, go to Ultimate > Range > Number Sequence Checker.

    Chip Pearson also has one of his pages dedicated to this subject, here.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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