+ Reply to Thread
Results 1 to 3 of 3

Swaping and renaming columns macro

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Swaping and renaming columns macro

    I am in the process of creating a spread sheet containing monthly data. As this is an ongoing report dating back to 2011 there are several hundred thousand rows of data. Not every month has been recorded in the same way so it involves column manipulation. Each column is thousands of rows long. As you could imagine its very time consuming. I have searched for Macros online and have found one that is close but not quite what I am after. Just wondering if you or anyone else might be able to help?
    So the macro needs to detect and rename columns where required as well as reordering and copying and pasting.
    The Master should read as an example:

    A B C D E F G H

    However some months might be

    A B C E D F G H
    (Where some columns are out of order)

    or

    A BB C D E FF G H I

    (Where some columns are named slightly differently or there are additional columns.

    The intent is to not only reorder existing info (hundreds of thousands of lines of it) but to have a macro which will sort the new data as it comes to hand.

    Im aiming to have the first tab as a master sheet with the cumulative information being added and then with subsequent sheets showing individual monthly data.

    Can anyone help me please?

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Swaping and renaming columns macro

    Can you upload a sample workbook with real-life data, please?
    Doesn't need to be thousands of lines of data, but a good representation of what you're after.
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Swaping and renaming columns macro

    HDVQUESTION.xlsx

    I hope this upload works

+ 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