+ Reply to Thread
Results 1 to 3 of 3

Making a list with blanks?

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Making a list with blanks?

    I was wondering if it's possible to do this.. Say I have a row of random numbers (and they're in numerical order, but there are just numbers missing). I want to insert empty rows whenever I'm missing a number.

    So for example my list looks like this:
    1
    4
    5
    8

    But I want it to look like this:
    1
    (blank)
    (blank)
    4
    5
    (blank)
    (blank)
    8

    Any help would be appreciated, thanks!

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Making a list with blanks?

    That would require VBA. Try this in a helper column, then after you can delete the original numbers, if you wish.

    Consider A2:A1000 is numbers,

    In B2, then copy down

    =IF(ISNA(MATCH(ROWS(B$2:B2),A$2:A$1000,0)),"",ROWS(B$2:B2))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Making a list with blanks?

    that is exactly what i need! thanks so much
    Last edited by colourxpalette; 05-31-2012 at 03:56 PM.

+ 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