+ Reply to Thread
Results 1 to 7 of 7

Fill in numerical sequence?

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Umeå, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Fill in numerical sequence?

    Hi,

    I have an incomplete numerical sequence that I would like Excel to automatically complete with the missing posts. Example:

    2
    5
    6
    7
    9

    Should be:

    1
    2
    3
    4
    5
    etc.

    Do you have any tips on how to accomplish this?

    Best Regards,
    hpon

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Fill in numerical sequence?

    if your data is in A column use this in B2: =IF(B1<MAX(A:A), ROW(B1), "")
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Umeå, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Fill in numerical sequence?

    Quote Originally Posted by zbor View Post
    if your data is in A column use this in B2: =IF(B1<MAX(A:A), ROW(B1), "")

    Thank you very much for your reply zbor!

    I forgot to mention that the data consists of several columns; one enumeration column and a few columns of corresponding info. The enumeration should be continuous, but the info columns should be blank where new rows (numbers) have been added. Could the command be modified to generate such modifications?

    /hpon

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Fill in numerical sequence?

    Upload example workbook

  5. #5
    Registered User
    Join Date
    09-29-2011
    Location
    Umeå, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Fill in numerical sequence?

    Quote Originally Posted by zbor View Post
    Upload example workbook
    OK, see attached.

  6. #6
    Registered User
    Join Date
    09-29-2011
    Location
    Umeå, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Fill in numerical sequence?

    Quote Originally Posted by hpon View Post
    OK, see attached.
    Can't find the attachment in the thread, so I try again.

    See attached.
    Attached Files Attached Files
    Last edited by hpon; 09-29-2011 at 04:43 AM.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Fill in numerical sequence?

    Click Edit post, Go advanced, use paper clip icon to attach file.

+ 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