+ Reply to Thread
Results 1 to 14 of 14

Transpose wont work - too much data

  1. #1
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Transpose wont work - too much data

    Hi There,

    I asked this question a while ago but I don't think I explain myself very well! Here's the information I have:

    COLUMN A COLUMN B

    RunspaceId Data 1
    Cost Data 2
    ADCost Data 3
    ExchangeCost Data 4
    MaxMessageSize Data 5
    Sites Data 6
    AdminDisplayName Data 7
    ExchangeVersion Data 8
    Name Data 9
    DistinguishedName Data 10
    Identity Data 11
    Guid Data 12
    ObjectCategory Data 13
    ObjectClass Data 14
    WhenChanged Data 15
    WhenCreated Data 16
    WhenChangedUTC Data 17
    WhenCreatedUTC Data 18
    OrganizationId Data 19
    OriginatingServer Data 20
    IsValid Data 21

    RunspaceId Data 1
    Cost Data 2
    ADCost Data 3
    ExchangeCost Data 4
    MaxMessageSize Data 5
    Sites Data 6
    AdminDisplayName Data 7
    ExchangeVersion Data 8
    Name Data 9
    DistinguishedName Data 10
    Identity Data 11
    Guid Data 12
    ObjectCategory Data 13
    ObjectClass Data 14
    WhenChanged Data 15
    WhenCreated Data 16
    WhenChangedUTC Data 17
    WhenCreatedUTC Data 18
    OrganizationId Data 19
    OriginatingServer Data 20
    IsValid Data 21

    This repears upto 200 times and I have lots of these outputs with the value changing in column B but the format is essenially the same.

    I'm trying to work out how I can take Column A, make the data in there the title of each colum and then populate the relivant colum with the correct data based on it's entry next to it (in the above example column b.

    I'd like something like this in the end (I've removed some to the columns for ease of copy/paste)

    RunspaceId Cost ADCost ExchangeCost MaxMessageSize
    Data 1 Data 2 Data 3 Data 4 Data 5

    I can edit each script with the relivant column entrys that it should look for. Transpose wont work due to the sheer amount of data - it all ends up on two lines

    Any help would be appreciated - I'm looking at doing this manually at the moment and I have over 20,000 sections to work though!!

    Best regards, Wilbbleman
    Last edited by wibbleman12; 12-14-2010 at 02:01 PM. Reason: SOLVED

  2. #2
    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: Transpose wont work - too much data

    Your profile indicates you are using 2003 this version only has 256 columns, therefore that is the maximum rows you can transpose.

    You are asking for some 20x200 i.e. 8000 columns, for that you will need to use 2007 or above.

    Perhaps I'm misunderstanding you are you asking for a VBa solution to return 20 columns of data?

    Hope this helps
    Last edited by Marcol; 12-14-2010 at 10:30 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

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

    Re: Transpose wont work - too much data

    It's really easy to get this wrong, can you make it absolutely clear by posting a workbook with an excerpt of 5-10 of these "sections" on sheet1, then sheet2 showing the exact desired output from that sample set.

    Thanks.

    Marcol, I think the RunSpaceIDs would all go in the same column, etc. See, it's easy to get this wrong, sample wb will really help.
    _________________
    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!)

  4. #4
    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: Transpose wont work - too much data

    Aye, that was my conclusion Jerry.

  5. #5
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    I'm using Excel 2010 - apologies I'll update profile.

    I've attached a sample workbook with three sheets

    Sheet 1 - Current data, this is the data format I have

    Sheet 2 - Desiged data, this is the final output I'd like to create from Sheet 1's data

    Sheet 3 - This is what I get when I use copy/paste/transpose - wrong

    Thanks again.
    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: Transpose wont work - too much data

    This will do it:
    Please Login or Register  to view this content.

    SpecialCells is limited to about 8500 "sections" at a time, so you may need to break that data up into 3 groups, run the transpose on each group, then put them together.

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

    Re: Transpose wont work - too much data

    Actually, this version might not run into the limitations you might hit with SpecialCells:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    Many thanks for your suggestion.


    No sure about this one... Didn't work though

    ERROR WAS AS FOLLOWS:
    ------------------------------------------------------------------
    MICROSOFT VISUAL BASIC FOR APPLICATIONS

    Run-time error '1004':

    Application-defined or object-defined error
    ------------------------------------------------------------------

  9. #9
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    Just saw your second code post - I have no tried both. The second one appears to select the area but doesn't do anything with it.

    Returning the same 1004 error.

  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: Transpose wont work - too much data

    Here's the second one in your workbook, working for me.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    amazing - works a treat. The spreadsheet example you sent over.

    Thanks very much! If you ever in London I'll buy you a beer

    Have a great christmas

  12. #12
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    Me again! Sorry.

    So I've managed to transpose that one rather well thanks to your good self.

    Now I have a larger set of data. Lets look at one data set, it runs A1:B63 so I've ammened the code, with the new range hoping it would just work but alas it doesnt

    What modifications could I make so the codes versitile.

    The format will stay the same but the amount of rows may increase/decrease. I can edit this manually during each transpose

  13. #13
    Registered User
    Join Date
    12-10-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Transpose wont work - too much data

    Don't worry

    Fixed it.

    Moral of the story - try to fix before asking!

    Thanks again

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

    Re: Transpose wont work - too much data

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

+ 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