+ Reply to Thread
Results 1 to 2 of 2

Trying to consolidate lists

Hybrid View

limpinsomm11 Trying to consolidate lists 07-08-2008, 05:56 PM
Trebor76 Hi limpinsomm11, Welcome... 07-08-2008, 08:21 PM
  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    NC
    Posts
    1

    Trying to consolidate lists

    I basically have a table in the format of

    1
    2
    3




    A
    B
    C
    D


    11
    12
    13

    I want it to read in another column with no spaces:
    1
    2
    3
    A
    B
    C
    D
    11
    12
    13

    Basically, I would like it to skip to the next list and read everytime there is a space. I can't simply count the spaces as this is a template and there will be different number of items in each list each time. Thanks is advance for your excel skills.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi limpinsomm11,

    Welcome to the forum.

    Not sure of a formula solution, but if you run the following macro while on the starting cell for your summarised output (cell D4 in your attached example) you'll get the desired result:

    Sub Macro2()
    
    Dim rngSelection, rngCell As Range
    
        On Error Resume Next
            Application.DisplayAlerts = False
                Set rngSelection = Application.InputBox(Prompt:= _
                    "Use your mouse to select the reference range:", _
                        Title:="SPECIFY RANGE", Type:=8)
        On Error GoTo 0
            Application.DisplayAlerts = True
    
            If IsEmpty(rngSelection) = True Then
                Exit Sub
            Else
                For Each rngCell In rngSelection
                    If IsEmpty(rngCell) = False Then
                        ActiveCell.Value = rngCell.Value
                        ActiveCell.Offset(1, 0).Select
                    End If
                Next rngCell
            End If
       
    End Sub
    HTH

    Robert

+ 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