+ Reply to Thread
Results 1 to 6 of 6

Macros to Rearrange Data??

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Macros to Rearrange Data??

    Hello im new to macros and was wondering if I could get some help.

    I have a file that is in txt format. When I load this file into excel, it lists all the rows of information under one column. I need a macros that will reorganize this column in a certain order. I have attached an example of the text file (keep inm ind that this text file's order will change and is not always static, depending on the file, but it will always be in text format). Ive also included a sample of what the output should look like, but is in a .txt format but the arrangement is what im looking for with the proper value its associated with.


    Thanks!!

    **i also have to do some name conversions. For example if i have "Country Code" on the excel spreadsheet, i want to reorganize it in the order as the text file attached but also rename it to "Merchant_country_code" for example.

    **Also, there are some rows on the excel file that are unecessary, how would i delete these rows in the macros? Thanks!sample2.txtsample.xls

  2. #2
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to Rearrange Data??

    sorry i just re read my post and it sounds a little confusing, the txt file that i imported into excel is the file called "sample.xls", this is the file i need to reorganize, the output of what it should look like is the file called "sample2.txt"

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macros to Rearrange Data??

    On the attached, you have data in column A only, not output data either

  4. #4
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to Rearrange Data??

    hello, yes there should only be one column, the ouput is part of the rows its associated with (the last values in that row is the ouput). For the outpul file, imagine it as one column as well and not two separate columns.

  5. #5
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to Rearrange Data??

    for ex:

    Customer Service: 1-800-888-8888

    ^that row in the excel doc, the output is 1-800-888-8888. thats what i mean by the output is part of the row. How i want this to be formatted is Merchant_Customer_Service: 1-800-888-8888 for example. i just want this one column organized similar to the way the txt file is organized

  6. #6
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to Rearrange Data??

    bump for any suggestions?

+ 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