+ Reply to Thread
Results 1 to 6 of 6

Creating a macro to rearrange data

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    15

    Creating a macro to rearrange data

    ey guys- I'm rather new to creating and running macros, but I have a workbook that needs it's data rearrange. I have a sample before/after attached right now its

    Jan Feb March
    Item A $1 $2 $3
    Item B $2 $3 $5
    Item C $2 $6 $9


    And I need

    Item A Month Price
    Item A Month Price
    etc


    Any help would be greatly appreciated thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Creating a macro to rearrange data

    Hi
    try this macro
    you may have to change the names of the source or destination sheet, or the range of data to copy from

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Creating a macro to rearrange data

    @MattMurdock,

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    06-19-2012
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating a macro to rearrange data

    Quote Originally Posted by jeffreybrown View Post
    @MattMurdock,

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Sorry bout that, I will put a link next time

  5. #5
    Registered User
    Join Date
    06-19-2012
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    15

    Re: Creating a macro to rearrange data

    Thanks for your help- I appreciate it. Your code worked well except that I am not getting a column for months in the rearranged data. I do however get the items and prices in the correct arrangement.

    If it helps this is what I have rearranged the code to. My range of data is B970 to CI1061 but my months that I want to include are at C3:CI3. Any help?

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Creating a macro to rearrange data

    Next time, what is wrong with this time?

    Did you miss this part?

    We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post.
    Do you really expect NickyC to continue this thread when you could be getting subsequent help with your ?? other posts?

    The purpose of this rule is to get all the card on the table so people know what the hand looks like.

+ 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