+ Reply to Thread
Results 1 to 11 of 11

Help! Transpose Doesnt Fix Issue

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Help! Transpose Doesnt Fix Issue

    Right now, I have this:

    name data1 data2 data3 data4 data5

    But I'd like this:

    name data1
    name data2
    name data3
    name data4
    name data5

    The "Transpose" function doesn't quite do it correctly; any ideas ion how to proceed? I'd like to use a function if possible

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Help! Transpose Doesnt Fix Issue

    Is there some reason other than formatting this has to be done using functions? You could always transpose the data, move the name to the left of data1, and then double click the bottom right corner of the "name" cell to auto-fill down for the last data point.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help! Transpose Doesnt Fix Issue

    Is it always the same amount of data in each row (i.e. 5) or does it vary with each name?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Re: Help! Transpose Doesnt Fix Issue

    same amount of rows

  5. #5
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Re: Help! Transpose Doesnt Fix Issue

    sorry --- same amount of data for each "name"

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help! Transpose Doesnt Fix Issue

    With 5 data points in each row, in H1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In I1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Does that work for you?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Re: Help! Transpose Doesnt Fix Issue

    Works PERFECTLY !!! Thank you for your help!!!

  8. #8
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Re: Help! Transpose Doesnt Fix Issue

    OK --- I spoke too soon. Please see attached file. The formulas work only for 5 student IDs and/or 5 classes picked; how can I modify the formula so that there can be up to 1000 student IDs (column A) transposed with 15 classes picked? (please see attached file)
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help! Transpose Doesnt Fix Issue

    In N2 copied down, you need to modify the divisor and the starting row (2). According to your table B:M = 12 columns so

    =IFERROR(INDEX($A$2:$A$1000, INT((ROWS($A$1:$A1)-1)/12)+1),"")

    In O2 copied down,

    =IFERROR(INDEX($B$2:$M$1000, INT((ROWS($A$1:$A1)-1)/12)+1, MOD(ROWS($A$1:$A1)-1,12)+1),"")

    As I mentioned originally, this assumes the same number of data points for each student which does not look to be the case so there will be blank spaces or zeros.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help! Transpose Doesnt Fix Issue

    Not sure what your final aim is. If you are copying the newly organized data to a new sheet, it would be easy to "Paste as Values" and then filter on the zeros and delete those rows. If you want the blank rows removed automatically, here is a solution that uses ARRAYED Formulas.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    In Q2 copied down is this arrayed formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In R2 copied down is this arrayed formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-17-2014
    Location
    Miami
    MS-Off Ver
    10
    Posts
    6

    Re: Help! Transpose Doesnt Fix Issue

    OK the previous solution did the trick ---- thanks so very much for your help.

+ 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. Replies: 2
    Last Post: 10-08-2014, 05:30 AM
  2. Mail data base transpose issue
    By firsttobecool in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2012, 01:45 PM
  3. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM
  4. Issue similar to Transpose with a twist
    By simple2smilee in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 12:29 PM
  5. Transpose issue :-/
    By ross_t in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-19-2011, 06:25 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