+ Reply to Thread
Results 1 to 6 of 6

Transpose cell

  1. #1
    Registered User
    Join Date
    11-12-2021
    Location
    Cali
    MS-Off Ver
    2019
    Posts
    18

    Transpose cell

    Hi guys, how are you? I don't know if the correct way would be to describe my problem as a transposition problem, but this is what I thought fit best. The question is the following: I have job occupation codes that in 2000 were one, but for 2021 this id is repeated for more than one occupation, however these codes are in horizontal and I would like to transform them to vertical. Below I will leave an example of how it is and how I would like it to be. Hope you help me and thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Transpose cell

    With the VBA code below.

    See the attached file.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    11-12-2021
    Location
    Cali
    MS-Off Ver
    2019
    Posts
    18

    Re: Transpose cell

    Thank you very much. I got a question: suppose that instead of just one column of id2020, i had three, so my columns with id2000 would be a1, b1 and c1. What should I change in the code you posted?

  4. #4
    Registered User
    Join Date
    11-12-2021
    Location
    Cali
    MS-Off Ver
    2019
    Posts
    18

    Re: Transpose cell

    Quote Originally Posted by oeldere View Post
    With the VBA code below.

    See the attached file.

    Please Login or Register  to view this content.
    Thank you very much. I got a question: suppose that instead of just one column of id2020, i had three, so my columns with id2000 would be a1, b1 and c1. What should I change in the code you posted?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Transpose cell

    Better post a file giving a more realistic example of both your input AND expected output.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Transpose cell

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Extract cell contents and transpose in a another cell at designated times
    By mewingpants in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2020, 04:09 AM
  2. To transpose or not to transpose? What decides? Table / Array?
    By LIL2606 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-19-2019, 01:28 PM
  3. Replies: 4
    Last Post: 08-21-2018, 09:24 AM
  4. 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
  5. [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
  6. Add a Cell after a specific cell then transpose info into rows
    By mtc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2011, 12:00 PM
  7. Replies: 2
    Last Post: 02-19-2007, 04:53 PM

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