+ Reply to Thread
Results 1 to 3 of 3

Condense continuous sequences.

  1. #1
    Registered User
    Join Date
    09-29-2012
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    10

    Condense continuous sequences.

    Hello,

    The attached sample workbook is probably the clearest description of this. With the "Input" tab being my current data, and the "output" tab being my desired display.

    I am looking for a macro that will condense a sequence of continuous numbers in one column, into two columns showing only the first and last integer of the original sequence, such that when column "F" contains numbers "1,2,3,....9" A macro can be run so that columnF will display "1" and columnG will display "9" summarizing the entire sequence.

    It does not have to display perfectly, if extra columns are left over that is no problem. I used highlighting in the workbook for readability but these would not normally be present.

    Thanks very much for any help that can be provided!



    -Becky
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Condense continuous sequences.

    Hi

    This file meets your requirements.

    Enjoy.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Condense continuous sequences.

    hi Common Wealth, option, press Run button or run code "test"
    Attached Files Attached Files

+ 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