+ Reply to Thread
Results 1 to 2 of 2

How to swap rows/columns??

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2002
    Posts
    1

    Red face How to swap rows/columns??

    Hi peoples, I have some data with the date/time opposite to te direction I would like, ie:

    15/09/2009 23:50 0.6 245.9
    15/09/2009 23:40 0.7 239.3
    15/09/2009 23:30 0.7 241.4
    15/09/2009 23:20 1.1 251.0
    15/09/2009 23:10 0.8 250.2
    15/09/2009 23:00 0.6 249.5
    15/09/2009 22:50 2.0 251.4
    15/09/2009 22:40 2.7 251.5

    Surely there must be some easy way to invert/swap the rows, ie such that it is like:

    15/09/2009 22:40 2.7 251.5
    15/09/2009 22:50 2.0 251.4
    15/09/2009 23:00 0.6 249.5
    15/09/2009 23:10 0.8 250.2
    etc..

    Maybe some kind of matrix operation?? Any help much appreciated.

    Regards

    Ima

    Sorry for wasting your time guys, im an idiot! I just figured a really simple way around this by just adding another numbered column, and using sort!! Stupid!
    Last edited by Ima; 09-22-2009 at 10:04 PM. Reason: Figured an easy way out of it!

  2. #2
    Forum Guru teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,364

    Re: How to swap rows/columns??

    Hi,

    it is not clear if the data is in separate columns. Assuming that you have separate columns for

    Date - time - value1 - value2

    or even

    Date/time - value1 - value2

    you can do this:

    Select your whole data, all rows and all columns
    Click Data - Sort
    select which columns to sort by, i.e. if the date is in a separate column from the time, select the date column first, then the time column
    tick whether or not your data range has a Header row, i.e. labels in the first row.

    Hit OK

    viola

+ 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