+ Reply to Thread
Results 1 to 4 of 4

Swapping columns to rows using formula.

  1. #1
    Registered User
    Join Date
    09-18-2018
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    2

    Swapping columns to rows using formula.

    Dear Excel colleagues,
    I am having a hard time to rearrange data in 3 columns. COlumn A is a time stamp, B is a tag name anc C is a value that appeard on particular tag at certain time.
    Now what I would need is to change column B into row (so it became headder) and column C also to became a row. Time would still be a column A. To me its not that easy as it first looks.
    I have uploaded 2 explanation pics with original file and the target file. Not sure if its visible though...
    OriginalFile.png TargetFile.png

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

    Re: Swapping columns to rows using formula.

    Hi

    Suppose your data in A1:C25 (with headers)

    Use this formula and copy down and forward
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Swapping columns to rows using formula.

    Assume source data is Sheet1, results on Sheet2

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    should replicate your results, and assumes headers should be created dynamically relative to dataset.

  4. #4
    Registered User
    Join Date
    09-18-2018
    Location
    Poland
    MS-Off Ver
    MS Office 365
    Posts
    2

    Re: Swapping columns to rows using formula.

    Thank you guys!!! You cant even imagine how much you have just helped me. I have extremely little time to do this all. I am really really thankfull for this.
    I got one more question regarding the formulas. The COlumn A has a certain date format (custom). Of course I can select entire row and change it but last time when I was making different formula I have used this:
    (CELL("format";B1)="D4". I have checked the "D4" is the correct code. But as I do not understand your formulas yet and I really do not have much time can you point out where I should place that CELL function ??

    I have used this formula for row A: =IFERROR(INDEX(Sheet1!$A$2:$A$13,MATCH(TRUE,INDEX(ISNA(MATCH(Sheet1!$A$2:$A$13,$A$1:$A1,0)),0),0)),"")

+ 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. swapping rows
    By lgbingham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2013, 04:40 PM
  2. [SOLVED] Swapping rows for columns and columns for rows in a large database
    By Bloomingdales in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2012, 06:06 PM
  3. Columns to rows (swapping X & Y axis)
    By ellie4679 in forum Excel General
    Replies: 2
    Last Post: 11-21-2007, 05:00 AM
  4. Swapping rows
    By girish_mu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2006, 02:59 PM
  5. Swapping columns
    By anjanesh in forum Excel General
    Replies: 3
    Last Post: 05-30-2006, 06:10 PM
  6. Swapping columns
    By Daminc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2006, 08:43 AM
  7. swapping columns??
    By Johnny D in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 03:20 PM
  8. [SOLVED] Swapping rows and columns
    By Dorn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2005, 05:10 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