+ Reply to Thread
Results 1 to 5 of 5

sorting rows into a list

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2006
    Posts
    6

    sorting rows into a list

    I have a table 10 columns wide, 15 rows high with data in "SOME" of the cells
    My problem is that I want to build a list from this table reading from top to bottom. The list can have no blank cells. I can't find a way to do this because some of the cells are blank. Any help would be greatly appreciated

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    You could try a macro like...


    Sub CreateList()
    For Each Cell in Cells(1,1).CurrentRegion
    If Cell <> "" then Cells(65536,12).end(xlup).offset(1,0) =Cell
    Next Cell
    End Sub

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    You could try a macro like...


    Sub CreateList()
    For Each Cell in Cells(1,1).CurrentRegion
    If Cell <> "" then Cells(65536,12).end(xlup).offset(1,0) =Cell
    Next Cell
    End Sub

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    You could try a macro like...


    Sub CreateList()
    For Each Cell in Cells(1,1).CurrentRegion
    If Cell <> "" then Cells(65536,12).end(xlup).offset(1,0) =Cell
    Next Cell
    End Sub

  5. #5
    Registered User
    Join Date
    05-18-2006
    Posts
    6
    Thanks, that worked well, but I wanted to have this make the list automatically when I open the spreadsheet. I thought i could do this with formulas.

+ 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