Results 1 to 2 of 2

Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to code]

Threaded View

  1. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Transpose Data in every 2nd row (sorta) to column on right [easy if you know how to co

    Try this...

    Sub Transpose_Addresses()
        Application.ScreenUpdating = False
        ActiveSheet.Copy After:=ActiveSheet
        For i = Range("A" & Rows.Count).End(xlUp).Row To 3 Step -1
            If Left(Range("A" & i), 1) Like "[0-9]" And _
               Range("B" & i) = "" And Range("B" & i - 1) = "" Then
               
                Range("B" & i - 1) = Range("A" & i)
                Range("B" & i - 1).Font.Bold = False
                Rows(i).Delete
                
            End If
        Next i
        Application.ScreenUpdating = True
    End Sub
    It assumes the addresses start with a number. It misses those that don't.
    Last edited by AlphaFrog; 11-08-2016 at 03:12 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Any Easy VBA to do the transpose?
    By NeedForVBA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2016, 09:20 AM
  2. What is a function that will sorta and place random data in a table?
    By mpkelly6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2015, 12:37 PM
  3. Easy Way To Transpose 3 Colums of Data?
    By wings1080 in forum Excel General
    Replies: 17
    Last Post: 02-03-2015, 04:56 PM
  4. [SOLVED] Text to Column with Single Column Transpose - VBA code help
    By i2rule in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2014, 05:09 PM
  5. [SOLVED] How to transpose the datas of part code and supplier into row and column
    By PRADEEPB270 in forum Excel General
    Replies: 1
    Last Post: 10-12-2012, 06:58 AM
  6. [SOLVED] Easy Transpose Macro
    By ebdmbfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2012, 03:38 PM
  7. Easy way to transpose address info from one long column into neatly sorted rows.
    By hhhava in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 03:26 AM

Tags for this Thread

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