+ Reply to Thread
Results 1 to 4 of 4

Transpose just one column out of 35 columns- is this possible in excel

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Transpose just one column out of 35 columns- is this possible in excel

    I am copying just 4 columns out of 35 columns to show how my data look like.
    ID_No ID_Char Target RT
    1226465 N8KC N1 34.504
    1226465 N8KC N2 35.905
    1226466 N8KC N1 29.361
    1226466 N8KC N2 29.634
    1226467 N8KC N1 32.548
    1226467 N8KC N2 31.405

    Is it possible to transpose like below..
    ID_No ID_Char N1 N2
    1226465 N8KC 34.504 35.905
    1226466 N8KC 29.361 29.634
    1226467 N8KC 32.548 31.405

    Looks very simple for 3 to 6 records but with 1000 records and 35 columns is not simple.
    This can be easily done in access but checking to see if this is possible in Excel to avoid import and export.

    Please suggest and give me some code snippets to play around with VBA code or Formulas based solution.

    Thank you

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Transpose just one column out of 35 columns- is this possible in excel

    See if this works

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: Transpose just one column out of 35 columns- is this possible in excel

    Thank you so much. Perfect solution. Just first 4 columns have to be in the order. Rest I can add as many columns as possible. N1 and N2 will be transposed.

  4. #4
    Registered User
    Join Date
    09-22-2010
    Location
    US
    MS-Off Ver
    O365 (PC) V 2308
    Posts
    62

    Re: Transpose just one column out of 35 columns- is this possible in excel

    JLGWhiz,
    Is it possible to have a button on the form and when I click, it should transpose the data.
    or any other event to automatically update the data when new data is copied.
    How can I update the above code to reflect these changes.

    Thank you
    Last edited by mls_newbee; 10-01-2020 at 12:04 PM.

+ 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. How to transpose 4 columns with the same 1st column
    By stan255 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2016, 06:48 PM
  2. Replies: 5
    Last Post: 06-25-2013, 03:50 PM
  3. Transpose a set of 6 rows to one column and repeat for next columns
    By labamba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-14-2013, 05:06 AM
  4. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 AM
  5. Transpose multiple columns into one column
    By longfisher in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2011, 10:44 PM
  6. Transpose vertically down one column instead of across all columns
    By galileo007 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-05-2010, 11:44 AM
  7. need to transpose 3 or 4 columns to one column
    By Rufus in forum Excel General
    Replies: 2
    Last Post: 07-23-2005, 03:05 AM

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