+ Reply to Thread
Results 1 to 3 of 3

Macro for transforming columns with data

  1. #1
    Registered User
    Join Date
    02-08-2022
    Location
    Brooklen
    MS-Off Ver
    Office 365
    Posts
    1

    Macro for transforming columns with data

    I have the file Input.xlsx. I want to create a macro that changes the name of the columns, set the data in the right way as shown in Output.xlsx. Also the columns in red are added with the defined cell data.

    How can one combine this in a macro? In this example it is with a small data set, in general I have a more complicated data set but with the same columns name in both examples.
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Macro for transforming columns with data

    I think this does what you want:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Macro for transforming columns with data

    See if this is how you wanted.
    Both workbooks must be open.
    The code is in 'Input_maras'.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,
    Maras.

+ 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] Transforming data - Rows and Columns
    By mightyr in forum Excel General
    Replies: 5
    Last Post: 09-25-2018, 03:04 AM
  2. transforming rows & columns
    By koen303 in forum Excel General
    Replies: 5
    Last Post: 02-26-2015, 05:01 AM
  3. A macro for transforming formulas into values for a given month
    By loulite in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2014, 11:56 AM
  4. [SOLVED] Help transforming N Columns to M with a twist...
    By tonelot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-28-2012, 09:10 AM
  5. Transforming raw data into to meaningful columns
    By naveen_mikki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2010, 05:36 AM
  6. Transforming Date to Number Macro
    By Y&Y in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2009, 10:24 AM
  7. Transforming Multiple Rows into 2 columns
    By wilsonds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2006, 05:20 PM

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