+ Reply to Thread
Results 1 to 16 of 16

Tranpose

  1. #1
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Tranpose

    Hi Excel Experts,

    I want to transpose columns to rows.

    I have a data in Sheet1 as below:

    Akin 79

    Akin 106

    Akin 134

    Akin 121

    Arnett 477

    Arnett 423

    Arnett186

    Arnett 129

    Arnett 562


    And I need to get data arranged in the following way, i.e. the values on the second column to be displayed in a single row against their respective unique name.

    Akin 79 106 134 121

    Arnett 477 423 186 129 562

    THNKS IN ADVANCE
    Last edited by pankajsc96; 01-21-2012 at 09:25 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Tranpose HELP!!!!

    Hi Pankaj,


    See the attached file where I have used just formulas to achieve the desired result.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose HELP!!!!

    Hi pankajsc96 and welcome to the forum,

    I have a different solution than the Array function suggested by dilipandey. Instead, I've used two helper columns with Index and Match to solve your problem. See if this one makes more sense.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose HELP!!!!

    Hi Dilip,
    Thank you very much!!!!
    it worked, but for my sheet it's not for some reason....

    Also, can we have the result in next sheet???
    pls find the attached sheet

    Will this formula work for around 300000 rows as i need to process such large data once in a week

    Thanks & regards,
    Pankaj Singh Chouhan
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose HELP!!!!

    Hi MarvinP
    Thank you very much
    pls chk my actual file which need I to process quite often...
    I know nothing about XL except vlookup's & count's tht's it

    Thanks in advance
    Last edited by pankajsc96; 01-21-2012 at 11:01 AM.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose HELP!!!!

    OK,

    See it here with your data...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose HELP!!!!

    Gr888888888!!!!!!
    Thanks Marvin P
    It worked for me
    Thank you again...

    Pankaj

  8. #8
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose HELP!!!!

    hi Marvin,
    The formula which you gave lately works pretty well but the problem is when I try to process large amount of data it freezes excel.
    Is there any other way to do it. The file which I want to process is around of 4Mb & contains 300000 rows.
    Please help!!!

    Thanks & Regards,
    Pankaj

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose HELP!!!!

    Hi pankajsc96,

    300,000 rows is a lot!! I'm wondering if you have enough power and/or memory in that machine to not hang on such a big file. I could write some VBA to accomplish the same transpose but can't insure it would be any faster or not hang like you are getting now. Perhaps if you could explain the real problem in more detail a Pivot Table or other method would be a better solution for your needs.

  10. #10
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose HELP!!!!

    Hi Marvin,
    Yeah I know 300,000 is huge no. Actually I'm a telecom RF engineer. On daily basis we dealt with such huge data showing KPI of GSM/3G cells. I really appreciate that you take your time & efforts to solve my problem. Thank you so much.
    By the way my laptop is having i7, 2.3GHz, 8Gb RAM.
    Pardon me if I someway offended you & for my bad English .

    Thanks & Regards,
    Pankaj

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose

    Hi,
    I don't mind the english. I'm wondering why my method hangs. I too have a power machine with a fast cpu and lots of memory.

    I'm wondering why you need the data like you suggest. If you did an AutoFilter with your columns A and B you could filter the source and see a list or Targets very easily. My question was more of "what question are you trying to answer" by wanting to see the "transposed" data like you suggest? I'm thinking an Autofilter or Advanced Filter or even Pivot Table may be all you need to answer your questions. You felt a transposed view was your answer but I'm thinking there are other ways. That is why I asked if you could explain the real problem in more detail above.

    Also, what is the real data like? Are there only a few Targets for each Source? How many different Sources are there in a set of 300K rows?

  12. #12
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose

    Hi Marvin,
    If you want I can share my XL, it will answer all your questions.

    let me explain little bit about my data:-

    Suppose you make a call from your mobile & you are in a car moving from point A to B, in that process you may cross many cell sites (2G/3G/4G) . Then for proper call handling (or to continue call), there is process call "HANDOFF" in telecom networks where we (RF Engineer's) define Hanoff definitions between SOURCE & TARGET. If I miss or not define relevant cell(target) to a source cell, your call will DROP!!!.


    To avoid this we do this hygiene check on weekly basis.

    Regards,
    Pankaj

  13. #13
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose

    "what question are you trying to answer?????"

    Actually the data I have is output from my system, & to display this on my mapping software it should be desired format which I want to achieve.
    I think I answered your question...

    Thanks,
    Pankaj

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose

    Hi paknaj,

    Is the real question is to find those cell towers that drop a call? If it is then how does putting the data in your transposed format show that?
    Is the question to count the number of tower handoffs that are successful?
    Is the question to see how many 2G/3G/4G handoffs work correctly if the number in front of the G changes?

    I'm thinking that your transposed format of the data makes Excel work harder. Excel loves TABLES of data in the original format. I'm thinking you can get a Autofilter or Advanced Filter or even Pivot Table to do all the work, faster and easier. I'm just looking for the REAL question you are trying to answer.

    See the attached for 3 simple (maybe not that simple) Pivot Tables using your example data.

    Using Pivot Tables' Sorts, Filters, Groups and Expand/Collapse features; I think you can do lots more than the "transposed" format you want to move your data into. AND Pivot Tables are FAST!!
    Attached Files Attached Files
    Last edited by MarvinP; 01-25-2012 at 12:39 PM.

  15. #15
    Registered User
    Join Date
    01-21-2012
    Location
    India, maharashtra
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Tranpose

    Hi Marvin,
    Thanks for your reply.
    I've tried with pivot lately before posting query on this forum but with the amount of data that I have it's quite impossible for XL to process it.
    I know it's quite hard for XL to process the data I want, that's why I joined this forum.
    By the way I've found one macro which process the data in required format, but it works with XL2003 only. Can you please modify this macro in a way that it can work with XL2007.

    Thanks & regards,
    Pankaj
    Attached Files Attached Files

  16. #16
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Tranpose

    I'm sorry but the attached file above seems to be password protected and I can't get into it.

    Did you try AutoFilter on your data? It should be very fast. I guess I need a bigger file and exactly why you need it in the format you suggest to see if I can help.

+ 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