+ Reply to Thread
Results 1 to 15 of 15

Transpose (switch) rows into rows. and columns into comuns.

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Transpose (switch) rows into rows. and columns into comuns.

    Hi

    i need to mark some row (which has some content written in), mark other row(with data too) and switch/transpose them mutual.
    when i was trying transpose method, which is using for switching rowns and columns, it wrote me error, that data are overlapping. it means it cant work on same things (rows > rows, columns > columns).

    simply i need from this:
    Please Login or Register  to view this content.

    make this:
    Please Login or Register  to view this content.


    ty


    // edit due crossposting. i didnt plan it, but this issue i'm solving for ages and it is kind of urgent. sry

    Please Login or Register  to view this content.
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Transpose (switch) rows into rows. and columns into comuns.

    Dear Rapier,

    we do understand urgency
    first of all explain your problem & expected solution with due required criteria in excel sheet

    Thanks
    A

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Transpose (switch) rows into rows. and columns into comuns.

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    ok i have go sleep so i will make as much as possible clear for all (why it isnt now?)

    1, what i do in excel:
    - manually writing all data into table. in horizontal meaning. rows. but other time i do also vertical meaning like collumns. not both together.

    2, what sometimes occurs:
    - my personal fail, which means I write bad data into rows. which i figure out at the end of work, because that's the time, when it is proper to check all. because only in the end it make sense.

    3, what I need:
    - select bad row ( which is in bad place or data in it are in bad place), select other row, which needs to replace wrong one.
    - simply select two rows (or columns - see point #1), right click, pick option: swap/swich, done.

    4, but it doesnt exist so far.


    pics:
    - wrong scenario. selected rows are that, which i need to switch.
    Please Login or Register  to view this content.
    - correct scenario, which needs to be made.
    Please Login or Register  to view this content.

    now MUST be clear for all

  5. #5
    Registered User
    Join Date
    07-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Transpose (switch) rows into rows. and columns into comuns.

    If you are comfortable with VBA, I have found a macro that may work for you.
    Source: http://www.extendoffice.com/document...ip-column.html


    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 07-28-2013 at 04:24 PM.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Transpose (switch) rows into rows. and columns into comuns.

    vtikhon...
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Transpose (switch) rows into rows. and columns into comuns.

    @ _rapier_ I asked you already to NOT upload pictures!!

    Also, please do not use file-hosting site for your file, rather upload them here...
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

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

    Re: Transpose (switch) rows into rows. and columns into comuns.

    @Rapier

    Please Login or Register  to view this content.
    Not for me, but that not the point.

    You want to get help from forummembers, and you are asked to add an excel file (instead of an PNG, in which we can't work).

    You need the solution very quick (urgent) and still you don't feel the need to post the file.

    It is of course your choise, but why you think forummembers will help you if you don't add what's been asked for your help?

    Take this in mind:

    Would you help someone, who won't give you the information you need to help him / her?
    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.

  9. #9
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    ok sorry
    i was just in hurry to go sleep and wanted to find in the morning 'surprice' by solved this issue

    here are files
    excel correct.pngexcell wrong.png


    // i dont know why pics are not in attached files. it is lilttle complicated here.. and something like 'insert line' is messing it all.

    btw i dont know what is macro or visual basic something. i would appreciate step by step attittude to me. ty v much
    Attached Files Attached Files
    Last edited by _Rapier_; 07-29-2013 at 04:25 AM.

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

    Re: Transpose (switch) rows into rows. and columns into comuns.

    @Rapier,

    your title to the problem is:

    Transpose (switch) rows into rows. and columns into comuns.

    If I see your excel file you want to count the numbers of words in a cell.

    This is a whole differant question.

  11. #11
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    no
    i dont want count nothing. (it was example of data. EXAMPLE of corelation)

    i was writing text like here now - into horizontal line = row. like abcdefg....
    three lines, one under other one would look like:

    abcdefg
    hijklm
    nopqrstuvwxyz

    (english alphabet in correct order in three lines)

    but if i make mistake and write it like this:
    abcdefg
    nopqrstuvwxyz
    hijklm

    then i must swap second and third line each other.


    why is that so hard for you to understand?!



    &
    same situation can occur, when i would be writing it in vertical. > into columns
    like:

    a e o
    b i p
    c j q
    d k q
    e l s
    f m t
    g n u
    Last edited by _Rapier_; 07-29-2013 at 01:39 PM.

  12. #12
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Transpose (switch) rows into rows. and columns into comuns.

    Hi Rapier,

    see attached this is what you want
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    amy_d2

    ty for description, but i still dont get it.

    i need something which will be always running with my excel. so every time i will work in excel, it will be there ready/prepared/running behind/running hidden for use anytime.

    it must be something easy useable. not like making new long function, define rows and then possible to make swap.

    because i dont know when i will make mistake. so if i do, i just select whole rows or colums and swap them somehow.

    i hope it is more clear

    ty v much

  14. #14
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    again

    No matter what table it is, no matter what data is there, no matter data correlation. I need to select two rows (or columns), and swap them mutually.
    imagine:
    row1: abcdefg
    row2: hijklmn

    Now after switching:
    row1: hijklmn
    row2: abcdefg

  15. #15
    Registered User
    Join Date
    07-28-2013
    Location
    earth
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Transpose (switch) rows into rows. and columns into comuns.

    SOLVED by this elegant step by step guide. awesome. systematic, stepbystep, displayed instructions how to do it:
    Please Login or Register  to view this content.
    BUT i dont know three things:
    1, how to save that macro in my excel to be there forever prepared for use.
    2, how to make button in excel to run that macro by one click.
    3, how modify it, to not swap WHOLE rows, columnsm; but just few celles selected from it !

    ty guys
    Last edited by _Rapier_; 08-01-2013 at 09:22 AM.

+ 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 every 64 rows into 64 columns with multiple rows
    By owlish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2012, 06:18 PM
  2. [SOLVED] Transpose Columns to Rows (automatically inserts new rows)
    By kichkichkich in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-28-2012, 05:38 AM
  3. Replies: 2
    Last Post: 01-01-2012, 05:54 AM
  4. switch rows & columns?
    By wcc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2005, 03:06 PM
  5. Switch Rows and Columns
    By Bonnie in forum Excel General
    Replies: 3
    Last Post: 03-03-2005, 12:06 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