+ Reply to Thread
Results 1 to 4 of 4

Macro to reformat raw data in a different worksheet

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    Michigan
    MS-Off Ver
    Windows 7
    Posts
    16

    Macro to reformat raw data in a different worksheet

    I have two columns of raw data which are currently being manually reformatted (copy/paste) and are very time intensive. I am looking to create a simple macro which will make this process autonomous.

    Macro Example.xlsx

    Above is a link to a small sample of data and how I would like to process it.

    Firstly, I am only interested in names beginning with "TH47#" (I do not care about any name where the 5th character is not numeric). I also do not care about any items called "Alll".

    I want to populate sheet 2 with a reformatting of column A in which each unique name starting with "TH47#" will become a heading extending across Row 2 in sheet 2. In the example file, only three names will populate row 2 of sheet 2.

    Under the headings in sheet 2, I want to list all of the items associated with the names selected.

    I'm happy to answer any questions!!

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Macro to reformat raw data in a different worksheet

    Try this.
    Adjust any ranges as required.

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    07-12-2012
    Location
    Michigan
    MS-Off Ver
    Windows 7
    Posts
    16

    Re: Macro to reformat raw data in a different worksheet

    This is brilliant. This may be too much to ask, but is there any way to offer the user a prompt where they can type in the first five letters they are looking for (instead of changing the macro from "TH47#")... This way when the name changes, the macro would not need to be updated. Thank you so much for your help, David!

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Macro to reformat raw data in a different worksheet

    For the simpliest solution, look at Inputbox. Look at help file for example, then replace literal in search with variable assigned to inputbox.

    Is ALL the data in column A. Might be able to get a unique list into a combobox that the user simply scrolls down and select.

+ 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