+ Reply to Thread
Results 1 to 10 of 10

Transposing question

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Cool Transposing question

    Hey everyone,

    First post here, woo hoo! This seems like a really helpful website and I wish I would have stumbled on it a long time ago.

    I have the following format of data:

    Time in ms Task Filename Filetype file size
    3626 ExportToJpegTask 00524c99-f62a-420a-95a3-8deb895147f9-4 ppt 869888
    2403 ExportToPdfTask 00524c99-f62a-420a-95a3-8deb895147f9-4 ppt 869888
    2899 ExportToPptTask 00524c99-f62a-420a-95a3-8deb895147f9-4 ppt 869888
    2182 ExportToPptxTask 00524c99-f62a-420a-95a3-8deb895147f9-4 ppt 869888
    1291 ExportToJpegTask 00543006-97c0-407b-8123-00add40d13a3-2 ppt 568832
    2369 ExportToPdfTask 00543006-97c0-407b-8123-00add40d13a3-2 ppt 568832
    2493 ExportToPptTask 00543006-97c0-407b-8123-00add40d13a3-2 ppt 568832
    2119 ExportToPptxTask 00543006-97c0-407b-8123-00add40d13a3-2 ppt 568832
    1868 ExportToJpegTask 0069b076-9612-423b-bb2b-d40516a04a1b-1 ppt 2048000
    2650 ExportToPdfTask 0069b076-9612-423b-bb2b-d40516a04a1b-1 ppt 2048000
    2977 ExportToPptTask 0069b076-9612-423b-bb2b-d40516a04a1b-1 ppt 2048000
    2351 ExportToPptxTask 0069b076-9612-423b-bb2b-d40516a04a1b-1 ppt 2048000
    2991 ExportToJpegTask 007c5c74-945f-49e0-b174-66d20f3ae875-1 ppt 488448
    3071 ExportToPdfTask 007c5c74-945f-49e0-b174-66d20f3ae875-1 ppt 488448
    2633 ExportToPptTask 007c5c74-945f-49e0-b174-66d20f3ae875-1 ppt 488448
    2212 ExportToPptxTask 007c5c74-945f-49e0-b174-66d20f3ae875-1 ppt 488448

    I need it to look like this:
    MS Filename Filetype file size ExportToJpegTask ExportToPdfTask ExportToPptTask ExportToPptxTask

    3626 00524c99-f62a-420a-95a3-8deb895147f9-4 ppt 869888 3626 2403 2899 2182
    1291 00543006-97c0-407b-8123-00add40d13a3-2 ppt 568832 1291 2369 2493 2119
    1868 0069b076-9612-423b-bb2b-d40516a04a1b-1 ppt 2048000 1868 2650 2977 2351
    2991 007c5c74-945f-49e0-b174-66d20f3ae875-1 ppt 488448 2991 3071 2633 2212


    I was looking at this post, and it appears that it is very very similar to what I am doing and tried running the code that was posted by pike, but I am getting an out of memory error. This is running on a beefy server so I feel like it's something wrong with the code, though this will be running against 10,000+ rows. I've played around with a few different solutions and couldn't find one that works. Does anyone know of a better way?

    Thanks in advance

    **Edit: Sorry, I saw another transposing question in here before so I thought this would be the right forum to put it in. It probably belongs in the VBA forum.
    Last edited by allholy1; 10-14-2010 at 01:18 PM.

  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: Transposing question

    Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.

    Make sure the sample clearly demonstrates BEFORE / AFTER examples.
    _________________
    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
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Transposing question

    Hi allholy1
    Welcome to the forum

    You would do best to post a sample workbook showing Before and After.
    It should clearly illustrate your problem and not contain any sensitive data.

    Cheers

  4. #4
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Transposing question

    This will give you a start:

    =IF(MID(A1,14,8)="JpegTask",MID(A1,1,LEN(A1))&" "&LEFT(OFFSET(A1,1,0),4)&" "&LEFT(OFFSET(A1,2,0),4)&" "&LEFT(OFFSET(A1,3,0),4)," ")

    There will be someone who can do a VB solution which will be more robust

    edvwvw
    Last edited by edvwvw; 10-14-2010 at 12:13 PM.

  5. #5
    Registered User
    Join Date
    10-14-2010
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Smile Re: Transposing question

    Here is a before and after. Thanks for the quick responses.
    Attached Files Attached Files

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

    Re: Transposing question

    Remove the BEFORE line at the top so the data sits in A1 properly.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-14-2010
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Transposing question

    You guys are awesome. Thank you so much. I'll be sticking around here and make sure I pay this help forward.

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

    Re: Transposing question

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  9. #9
    Registered User
    Join Date
    10-14-2010
    Location
    chicago, il
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Transposing question

    Anyway to make it so it's not stuck on the name of 'sheet1', and to make it go to the upper bounds?

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

    Re: Transposing question

    The code is meant as a starting point. It is expected you will edit it for your final needs. Surely you can edit the "Sheet1" to whatever you need it to be, or replace it with ActiveSheet.Copy if you're SURE you'll never activate the macro from the wrong sheet.

+ 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