+ Reply to Thread
Results 1 to 9 of 9

formula to transpose rows to columns

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    formula to transpose rows to columns

    I need from 'sheet1!' transpose rows into column in 'sheet2!'. Transpose function is not good for me. i need index or soemthing like that. here is the example what i would like to accomplish: question 2.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula to transpose rows to columns

    =INDEX(Sheet1!$A$1:$G$1,SMALL(IF(Sheet1!$A$1:$G$1<>"",COLUMN(Sheet1!$A$1:$G$1)),ROW(A1)))

    Array formula confirmed with Ctrl+Shift+Enter

    and copied down
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: formula to transpose rows to columns

    Delete this post
    Last edited by purlo; 10-07-2014 at 03:23 PM.

  4. #4
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: formula to transpose rows to columns

    Thank you, thats wonderful.

    how the formula that does not skip empty gaps looks like?
    Last edited by purlo; 10-07-2014 at 03:23 PM.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula to transpose rows to columns

    It's kind of complicated. I will change the references to their values and use bold to show you what's happening.

    A3:

    =INDEX(Sheet1!$A$1:$G$1,SMALL(IF(Sheet1!$A$1:$G$1<>"",COLUMN(Sheet1!$A$1:$G$1)),ROW(A3)))
    =INDEX(Sheet1!$A$1:$G$1,SMALL(IF({"age",17,0,19,0,0,20}<>"",COLUMN(Sheet1!$A$1:$G$1)),ROW(A3)))
    =INDEX(Sheet1!$A$1:$G$1,SMALL(IF({TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE},COLUMN(Sheet1!$A$1:$G$1)),ROW(A3)))
    =INDEX(Sheet1!$A$1:$G$1,SMALL(IF({TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE},{1,2,3,4,5,6,7}),ROW(A3)))
    =INDEX(Sheet1!$A$1:$G$1,SMALL({1,2,FALSE,4,FALSE,FALSE,7},ROW(A3)))
    =INDEX(Sheet1!$A$1:$G$1,SMALL({1,2,FALSE,4,FALSE,FALSE,7},{3}))
    =INDEX(Sheet1!$A$1:$G$1,{4})
    =INDEX({"age",17,0,19,0,0,20},{4})
    =19

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula to transpose rows to columns

    Also, illustrated:
    Attached Files Attached Files

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula to transpose rows to columns

    Not skipping gaps:

    =INDEX(range,0,ROW(A1))

    and drag down

  8. #8
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: formula to transpose rows to columns

    can u upload file? when i enter this formula it shows error..

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: formula to transpose rows to columns

    here is the attachment
    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. [SOLVED] Formula to transpose rows to new columns and columns to new rows in Excel
    By bjnockle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-26-2014, 06:28 PM
  2. [SOLVED] dynamic index match formula to transpose values across rows and then down columns
    By Bananas212 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-30-2014, 03:07 PM
  3. Replies: 1
    Last Post: 01-24-2014, 06:20 PM
  4. A formula to transpose rows into columns?
    By money n da sank in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2008, 11:58 AM
  5. Formula to convert/transpose columns to rows (and vice versa)
    By markx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2005, 11:06 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