+ Reply to Thread
Results 1 to 10 of 10

Moving row to column conditions, deleting rows

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Moving row to column conditions, deleting rows

    Hi,
    I'm looking to move some cells around so that the data (see workbook link below) runs horizontally like
    A569 MA MA MD
    A220 MD
    A911 MA MA MA MA MD
    A110 MD


    So far I've been trying to do it in a piecemeal manner but I can't get a delete row code right nor move beyond lining up the second variable. Any help would be greatly appreciated!

    Please Login or Register  to view this content.
    Workbook sample
    Last edited by rocketpanda; 02-17-2014 at 03:44 AM. Reason: per forum rules

  2. #2
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    Workbook added ^
    Last edited by rocketpanda; 02-17-2014 at 03:45 AM. Reason: not relevant

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Moving row to column conditions, deleting rows

    Hi, rocketpanada,

    you would need to add code-tags to the procedure in your opening post according to Forum Rule #3 and maybe attach a workbook as sample.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    Edited.
    Any tips for the Excel worksheet?
    Thanks Holger!

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Moving row to column conditions, deleting rows

    Hi, rockletpanda,

    you could have uploaded the workbook here on the server as well.

    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    Genius but damn I should've said that there were seven more columns between those two I uploaded sorry to bother again

    Thanks for your help!

  7. #7
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    hm I deleted my columns so it looks like what I uploaded and my the code keeps running. Does it take this long for 6,000 rows?

  8. #8
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    wheee!! you did it! DANKE!

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Moving row to column conditions, deleting rows

    Hi, rocketpanda,

    you could put the flickering off:
    Please Login or Register  to view this content.
    If you have formulas in the workbook or worksheet_events you should turn the events off as well and change to CalculationManual for the run of the macro.

    Ciao,
    Holger

  10. #10
    Registered User
    Join Date
    02-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Moving row to column conditions, deleting rows

    Thanks, mate!

+ 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. moving rows of cells into new column based on conditions
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2012, 04:36 PM
  2. Deleting duplicate rows but preserving & moving one column
    By krenejones in forum Excel General
    Replies: 1
    Last Post: 11-10-2009, 03:53 PM
  3. [SOLVED} deleting rows and moving data
    By abuchan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2009, 08:52 AM
  4. Moving/Deleting rows based on criteria
    By Philly215 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2008, 09:22 AM
  5. Moving cells and deleting rows
    By Jim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2005, 08:15 AM

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