+ Reply to Thread
Results 1 to 5 of 5

Order horizontal lines by skipping empty cells

  1. #1
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Order horizontal lines by skipping empty cells

    Hello guys

    Can someone help me solve this?
    I am sending you an attachment.
    On the left, we have a list of 5 combinations of names. Some cells are empty.
    I need formulas in the table on the right (the red one), which would return what I wrote.

    The names should be ordered from left to right, skipping the empty cells, and when we reach the last name, the rest of the cells should be filled up again from the beginning (like an endless tape).

    So,
    ***-TOM-MIKE-*** becomes: TOM-MIKE-TOM-MIKE
    JOHN-NICK-***-STEVE becomes: JOHN-NICK-STEVE-JOHN
    RICHARD-***-***-*** becomes RICHARD-RICHARD-RICHARD-RICHARD.

    Any ideas?
    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Order horizontal lines by skipping empty cells

    Can you work with this? It assumes you have empty cells and not "***" in them.
    Attached Files Attached Files
    Last edited by pb71; 06-07-2010 at 01:49 PM.

  3. #3
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Order horizontal lines by skipping empty cells

    Yes! It's actually perfect
    Thanks a lot!!

  4. #4
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Order horizontal lines by skipping empty cells

    Hello again!
    This was supposed to be solved long time ago, but actually it doesn't work if some of the cells contain formulas, whose result is "".

    So, in the example I attached, all the rows are ok, except for the last one.
    I want it to return "word1 word2 word3 word1".

    Any ideas?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Order horizontal lines by skipping empty cells

    Why do you have formulae in arbitrary cells?

    Anyway, please see attached.
    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