+ Reply to Thread
Results 1 to 1 of 1

Macro to move data to another format

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    39

    Macro to move data to another format

    I'm looking for a macro to select data from a larger data set, and then put it in another worksheet. Basically, I want to select any cell in column A that contains "SO5" and move those to the column A of a separate worksheet. Then, for each cell that contains "SO5" would like to move to the right 5 columns and down 3 rows and select from that cell all the way to the end of the table. There may or may not be data in all of the table cells, so the selection should be based off of the column headers which will always have values. I would like to take that data and put it with the corresponding "SO5" in the new sheet.
    Here's a sample:

    MacroSample.xlsm

    This is a simplified version, but I'm trying to get the data from sheet1 into the format in sheet2. Keep in mind that the number of columns and rows may change so it needs to be as dynamic as possible.

    Any help would be greatly appreciated!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to move data to another format

    Hi,

    Make sure sheet2 is empty then run the following macro

    Please Login or Register  to view this content.
    Incidentally, would you mind changing your location to something more sensible than 'Somewhere'. It often helps when we are faced with implying what your date or other regional settings might be.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. [SOLVED] IF data on opened worksheet has blank data then cancel macro and move onto next part
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 07:11 AM
  2. Macro to move data from one format to another for timesheet view
    By tez21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 10:20 PM
  3. move and format data with double click
    By navigator25 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2011, 05:39 PM
  4. Replies: 1
    Last Post: 07-14-2008, 03:24 PM
  5. create macro to move label type data to column data
    By JonathonWood9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2005, 07:06 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