+ Reply to Thread
Results 1 to 13 of 13

Transpose issue

Hybrid View

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Transpose issue

    Hi

    As my username may suggest I am pretty new to both Excel and this forum , this is my first post in fact. I have attached the file containing parts of my data ( it apparently exceeded maximum file size) as it may make it easier to understand what im trying to do.

    I am trying to transpose the data in the "Length" column so it ends up paired with correct ID in rows as can be seen on the right hand side. I have not been able to find any other way of doing this except manually selecting the "Length" data belonging to one ID and then copy - transpose. Surely I am overlooking some less time consuming way of transposing than to manually copy paste thousands of times?

    I would be extremely grateful for any suggestions of less time consuming ways to transpose the data.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: Transpose issue

    J2:
    Formula: copy to clipboard
    =IF(ROW()<>MATCH($E2,$E:$E,0),"",IF(COLUMN()-10>=COUNTIF($E:$E,$E2),"",INDEX($B:$B,MATCH($E2,$E:$E,0)+COLUMN()-10)))


    Copy across and down. Suggest that you then Copy and Paste Special | Values.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: Transpose issue

    Sorry, this won't work unless the IDs are grouped together.

    Regards, TMS

  4. #4
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Re: Transpose issue

    Alright , thank you for trying tho. Any suggestion on how I could group ID's together in a smart way?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Transpose issue

    Wwhy not select the data and Sort by Id and then by age, both smallest to largest and then apply TMS' formula.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Re: Transpose issue

    Im not sure what im doing wrong but i keep getting error messages when trying to apply the formula after sorting as suggested , it would help me greatly if someone could exactly what goes where in the row and column brackets in the formula since i suspect it may be my inexperience causing problem. Also thank you both for the quick replies and suggestions =)

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,417

    Re: Transpose issue

    I offer this option.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Re: Transpose issue

    That does indeed seem to be a neat solution to my problem , I will try to apply it to my larger dataset and see if it works there as well. Thank you =)

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Transpose issue

    Hi
    Try these formula and copy right and down
    =IF(AND(OFFSET($A2,COLUMN(A$1)-1,0)=COLUMN()-10,I2<>""),IF($A2=0,OFFSET($B2,COLUMN(A$1)-1,0),""),"")
    Formula: copy to clipboard
    =IF(AND(OFFSET($A2,COLUMN(A$1)-1,0)=COLUMN()-10,I2<>""),IF($A2=0,OFFSET($B2,COLUMN(A$1)-1,0),""),"")

  10. #10
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Re: Transpose issue

    Alright I tried Czeslaws suggestion and while it does seem to work for the first 10-15 rows it then displays the rest as blank ( the code is present though) and it seems to calculate without progressing. Any ideas as to why this is happening?

    José im not quite sure how to use the formula you provided , what do i put in the empty column bracket ?

  11. #11
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Transpose issue

    Hi
    My formula is to be used in J2 and transpose the values in column B till the age is equal to 0.
    See the file Data(2).xlsx
    Regards

  12. #12
    Registered User
    Join Date
    12-29-2015
    Location
    Umeå, Sweden
    MS-Off Ver
    2010
    Posts
    8

    Re: Transpose issue

    I think i may have solved the problem i had with Czeslaw's suggestion on my end , il mark this post as solved. A BIG thank you to all of you, you have all helped me a lot =)

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: Transpose issue

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. transpose column to a range calculate and transpose to new table loop
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 10:52 AM
  2. [SOLVED] Help! Transpose Doesnt Fix Issue
    By CTX700ND in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-19-2014, 02:40 PM
  3. Mail data base transpose issue
    By firsttobecool in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2012, 01:45 PM
  4. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM
  5. Issue similar to Transpose with a twist
    By simple2smilee in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 12:29 PM
  6. Transpose issue :-/
    By ross_t in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-19-2011, 06:25 AM
  7. Replies: 2
    Last Post: 02-19-2007, 04:53 PM

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