+ Reply to Thread
Results 1 to 4 of 4

transposing multiple rows to a single row

Hybrid View

  1. #1
    Registered User
    Join Date
    05-23-2016
    Location
    tel aviv, Israel
    MS-Off Ver
    2016
    Posts
    2

    transposing multiple rows to a single row

    I have a datasheet that contains multiple rows for each patient . each row contains patients ID, kidney stone type (caox, cap, ua, str etc.) and its precentage (upper table)
    i would like to transform it to a table that has one row for each id, and this row will contain the precentage of the stones components which are written in the heading of each row (lower table)

    i would appreciate any idea

    thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,802

    Re: transposing multiple rows to a single row

    In B17 (array formula)

    =IFERROR(INDEX($C$2:$C$12,MATCH(1,($A$2:$A$12=$A17)*($B$2:$B$12=B$16),0)),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down

    Or non-array

    =IFERROR(INDEX($C$2:$C$12,MATCH(1,INDEX(($A$2:$A$12=$A17)*($B$2:$B$12=B$16),0),0)),"")

  3. #3
    Registered User
    Join Date
    05-23-2016
    Location
    tel aviv, Israel
    MS-Off Ver
    2016
    Posts
    2

    Re: transposing multiple rows to a single row

    OMG
    that is the quickest answer i have ever gotten

    thanks!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,713

    Re: transposing multiple rows to a single row

    Did you need a formula for patient ID?

    Non-array in A17

    =SMALL(IF(FREQUENCY($A$2:$A$12,$A$2:$A$12),$A$2:$A$12),ROWS($1:1))

    Remove Duplicates might be faster, though.
    Dave

+ 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. Transposing Multiple Rows To A Single, Listed Column
    By mchiodo7 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-23-2016, 01:15 PM
  2. Transposing many rows and columns to one single column
    By dcoyle80 in forum Excel General
    Replies: 5
    Last Post: 10-22-2013, 12:07 PM
  3. [SOLVED] Transposing a single column to multiple rows
    By SaraLynne in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-30-2013, 09:40 AM
  4. [SOLVED] Transposing single row to multiple columns between workbooks
    By crhoads in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 08:24 AM
  5. Replies: 2
    Last Post: 04-05-2012, 08:24 PM
  6. Transposing single column data to multiple rows
    By AudreyWalsh in forum Excel General
    Replies: 5
    Last Post: 01-02-2012, 09:09 PM
  7. Replies: 1
    Last Post: 03-18-2009, 04:18 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