+ Reply to Thread
Results 1 to 7 of 7

removing blanks from list by formula

  1. #1
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    removing blanks from list by formula

    Good Afternoon,

    I was having a problem with regards to sorting a list by formula by removing the blanks without having to sort the column, i.e in a list of number in column A 1 - 25 but numbers 9,13,14,21,22 are missing, in column B the numbers should be in sequence with no blank cells in the list, i can't seem to do it without "sorting" which rearranges the cell references.

    hopefully someone can figure it out?

    cheers reg
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    removing blanks from list by formula

    Using your posted file...
    Since it appears that there are no duplicate values in your source list...

    Try this:
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    Thank you so much Ron,

    thats brilliant

    cheers reg

  4. #4
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    I have another question Ron,

    i have added some text to the list but the formula only calculates numbers, is ther a way of including text as well, i have re attached a sample,

    thanks reg

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this array formula in H1, but use Ctrl+Shift+Enter to place { } around the formula

    =IF(ISNUMBER(SMALL(IF(F$1:F$30<>"",ROW(F$1:F$30)),ROW())),INDEX(F$1:F$30,SMALL(IF(F$1:F$30<>"",ROW(F$1:F$30)),ROW()),1),"")
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    Thanks once again Old Chippy,

    cheers reg

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to hear it helped - thanks for the feedback

+ 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