+ Reply to Thread
Results 1 to 6 of 6

filtering multiple rows

  1. #1
    Registered User
    Join Date
    03-14-2008
    Posts
    4

    filtering multiple rows

    Hi all, this is my first post. Here's my question:

    I have a large sheet that is related according to rows. The columns are unimportant. There is likely an easy solution to this, but all I need to do is filter out all the blanks - basically squeeze the data from right to left. All I can think of is perhaps transposing the entire sheet, then filtering each column for non-blanks, but that would be very time consuming. I'm somewhat familiar with the advanced filter, but I'm not sure how I could use it here.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by gratuitous1
    Hi all, this is my first post. Here's my question:

    I have a large sheet that is related according to rows. The columns are unimportant. There is likely an easy solution to this, but all I need to do is filter out all the blanks - basically squeeze the data from right to left. All I can think of is perhaps transposing the entire sheet, then filtering each column for non-blanks, but that would be very time consuming. I'm somewhat familiar with the advanced filter, but I'm not sure how I could use it here.
    Are you saying that you have blank columns that you want to eliminate, shifting columns to the right of a blank column to the left?

    If so then just use the sort, but sort by columns rather than rows. Sorting columns appears to be little used or even known functionality. To test for a blank column and mark it as such use something like:
    Please Login or Register  to view this content.
    If the column has no data you'll get a 99999 value, otherwise the number of the column. Convert all the formulae to values with a Copy...PasteSpecial Values, then select the whole range of data, choose Data Sort, but select the 'Left to Right' option, using the row where you've got your 99999 numbers as the key field.

    HTH

  3. #3
    Registered User
    Join Date
    03-14-2008
    Posts
    4
    Here's what I'm trying to say: If I have something like this below, where o's are blanks,

    A B C D
    x o x x
    x x
    x o x
    x o o x

    then I want to eliminate all the blanks and shift everything to the left, like this

    A B C
    x x x
    x x
    x x
    x x

    All I want to do is sort each row independently of the others. Thanks in advance for any help.

  4. #4
    Registered User
    Join Date
    03-14-2008
    Posts
    4
    ******** bump

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Highlight the block of data.

    Edit > Goto > Special and select Blanks, OK.

    Right-click, Delete and select Shift Cells Left.

  6. #6
    Registered User
    Join Date
    03-14-2008
    Posts
    4
    Thanks alot.

    I had a feeling it would be something simple.

+ 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