+ Reply to Thread
Results 1 to 13 of 13

Concatenate With Loop Through 2 Columns of Information

Hybrid View

  1. #1
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Concatenate With Loop Through 2 Columns of Information

    Maybe:

    Sub nigelld()
    Dim i As Long
    For i = Range("B" & Rows.count).End(3)(1).Row To 2 Step -1
    
        If Range("A" & i).Value <> "" Then
            Range("A" & i).offset(1, 1).Cut Range("A" & i).offset(, 1)
            Rows(i + 1).Delete
        End If
    Next i
    End Sub

  2. #2
    Registered User
    Join Date
    05-22-2014
    Posts
    11

    Re: Concatenate With Loop Through 2 Columns of Information

    Although I'm eternally grateful for all help I can't get that bit of code to concatenate all the numbers, it just takes the first one and deletes it and I need all the numbers below the name, if any, and before the next blank cell adjacent to the next name to be in the adjacent cell to the name. Sorry ;-)

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Concatenate With Loop Through 2 Columns of Information

    Can you attach a file with some sample data. Preferably with a Sheet before the macro is run, and a Sheet with what you want it too look like after the macro is run. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Nested loop to concatenate 2 columns of data
    By JohnnyBGood in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2015, 07:42 AM
  2. Concatenate columns with information base on user selection
    By gward2701 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 09:55 PM
  3. [SOLVED] Return row 1 information if selected and concatenate
    By rmack1272 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2012, 02:54 PM
  4. Replies: 0
    Last Post: 08-20-2012, 12:10 PM
  5. Replies: 8
    Last Post: 08-06-2012, 09:58 PM

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