+ Reply to Thread
Results 1 to 3 of 3

Collecting Data Within a Range

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2007
    Location
    Baltimore
    Posts
    4

    Collecting Data Within a Range

    I have an arrangement of data scattered throughout multiple rows and columns, most of which are blank that I need to arrange in one column, to sort and manipulate later. Aside from sorting each column to remove the blank cells and moving it to one column, is there an easy way to do this?

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

    Sub Test()
    For Each Cell In Selection
        If Cell <> "" Then Cells(65536, 256).End(xlUp).Offset(1, 0) = Cell
    Next Cell
    End Sub
    Select the range covering your total data set. The data will appear in column IV.

  3. #3
    Registered User
    Join Date
    06-07-2007
    Location
    Baltimore
    Posts
    4
    That sir, is brilliant! Worked like a charm. Thank you so much for your help. That is a very useful macro.

+ 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