+ Reply to Thread
Results 1 to 5 of 5

Need a MACRO which cleans vertical data in 1 column and transposes it to a new worksheet

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need a MACRO which cleans vertical data in 1 column and transposes it to a new worksheet

    Hi,

    Attached is a small sample of the vertical data, which I am trying to "clean" and then transpose into a new worksheet but under respective column headings. (see sheet 2 for the final format the data should be in)

    1. If you look at sheet 1, this is the data we have (script should keep going until there is no more data on the sheet).

    2. Only certain rows need to be transposed to the new sheet and placed under their respective column headings.

    If you look at sheet 1 and sheet 2 I'm sure you will understand the process.

    THANK YOU in advance for looking into this.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need a MACRO which cleans vertical data in 1 column and transposes it to a new workshe

    This should do it, just make sure the raw data is onscreen when you start, there doesn't need to be any other sheets in the workbook other than that.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need a MACRO which cleans vertical data in 1 column and transposes it to a new workshe

    Hi JB,

    WOW you are good! I've been messing around for 2 days trying to get something like that and you managed it in only a few hours! Wow thanks,

    Now I ran into a bit of a snag since I checked some of the ORIGINAL data we have and found that most HOTELS have additional rows with info (which we don't need), but it's affecting the macro you created. ;-(

    Attached is the RAW sample list of 10 hotels.

    As you will notice we only need a certain block of each one. Based on this RAW sample, would you be able to modify the macro to pull out only the Highlighted parts. Also, could you make it loop until there is no more data on the sheet?

    MANY MANY thanks for your kind assistance with this! Truly appreciate this!
    Attached Files Attached Files
    Last edited by cglobres; 01-15-2013 at 10:30 AM. Reason: forgot to attach file

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need a MACRO which cleans vertical data in 1 column and transposes it to a new workshe

    This should get you closer to 100%. As always tends to happen, there may be some "tweaks" you need to do manually to correct an item here and there in the resulting sheet. Since the data is so perfectly formatted in the new sheet, they should jump out at you which ones you need to check. Like item #1 from the results of this corrected macro:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Thumbs up Re: Need a MACRO which cleans vertical data in 1 column and transposes it to a new workshe

    What can I say.... YOU ARE THE MAN!

    Thanks Jerry! VERY MUCH APPRECIATED!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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