+ Reply to Thread
Results 1 to 4 of 4

Transpose samples by match

Hybrid View

rajamdade Transpose samples by match 05-18-2019, 09:28 AM
Fluff13 Re: Transpose samples by match 05-18-2019, 09:39 AM
rajamdade Re: Transpose samples by match 05-18-2019, 10:36 AM
Fluff13 Re: Transpose samples by match 05-18-2019, 10:48 AM
  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Transpose samples by match

    I am having >1200 rows 2 columns with about 120 clusters. I would appreciate if given formula on how to transpose the samples by matching OTUs as in the column clusters.

    Cluster Samples Result --> Cluster Samples transposed
    OTU-1 KF01-14|Genus_species OTU-1 KF01-14|Genus_species KF04-14|Genus_species KF05-14|Genus_species KF35-14|Genus_species KF37-14|Genus_species
    OTU-1 KF04-14|Genus_species OTU-2 KF02-14|Genus_sp KF03-14|Genus_sp KF04-14|Genus_sp
    OTU-1 KF05-14|Genus_species OTU-3 KF102-14|Genus_spec KF103-14|Genus_spec KF103-14|Genus_spec KF104-14|Genus_spec
    OTU-1 KF35-14|Genus_species
    OTU-1 KF37-14|Genus_species
    OTU-2 KF02-14|Genus_sp
    OTU-2 KF03-14|Genus_sp
    OTU-2 KF04-14|Genus_sp
    OTU-3 KF102-14|Genus_spec
    OTU-3 KF103-14|Genus_spec
    OTU-3 KF103-14|Genus_spec
    OTU-3 KF104-14|Genus_spec

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Transpose samples by match

    Excel 2013 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Cluster Samples Cluster Samples transposed
    2
    OTU-1 KF01-14|Genus_species OTU-1 KF01-14|Genus_species KF04-14|Genus_species KF05-14|Genus_species KF35-14|Genus_species KF37-14|Genus_species
    3
    OTU-1 KF04-14|Genus_species OTU-2 KF02-14|Genus_sp KF03-14|Genus_sp KF04-14|Genus_sp
    4
    OTU-1 KF05-14|Genus_species OTU-3 KF102-14|Genus_spec KF103-14|Genus_spec KF103-14|Genus_spec KF104-14|Genus_spec
    5
    OTU-1 KF35-14|Genus_species
    6
    OTU-1 KF37-14|Genus_species
    7
    OTU-2 KF02-14|Genus_sp
    8
    OTU-2 KF03-14|Genus_sp
    9
    OTU-2 KF04-14|Genus_sp
    10
    OTU-3 KF102-14|Genus_spec
    11
    OTU-3 KF103-14|Genus_spec
    12
    OTU-3 KF103-14|Genus_spec
    13
    OTU-3 KF104-14|Genus_spec
    Sheet: Data

    In D2 copied down
    Formula: copy to clipboard
    =IFERROR(INDEX($A$2:$A$13,MATCH(0,INDEX(COUNTIF(D$1:D1,$A$2:$A$13),0),0)),"")

    and in E2 copied down & across
    Formula: copy to clipboard
    =IFERROR(INDEX($B$2:$B$13,AGGREGATE(15,6,(ROW($B$2:$B$13)-ROW($B$2)+1)/($A$2:$A$13=$D2),COLUMNS($A$1:A$1))),"")

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Transpose samples by match

    Thank you "Fluff13" it worked...

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Transpose samples by match

    You're welcome & thanks for the feedback

+ 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] Transpose Data with match Conditions
    By abhinavbinkar in forum Excel General
    Replies: 3
    Last Post: 06-28-2018, 05:43 AM
  2. [SOLVED] VLOOKUP, Transpose, MATCH or something else
    By canada_dwarf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2016, 09:55 AM
  3. Transpose, Offset, Match
    By NOOR8225 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2013, 07:16 AM
  4. Replies: 6
    Last Post: 12-10-2012, 06:26 PM
  5. How to match & transpose?
    By vegobu in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-06-2011, 11:05 PM
  6. Index, Match, and Transpose
    By guynextdoor in forum Excel General
    Replies: 5
    Last Post: 02-27-2010, 05:58 PM
  7. Transpose with condition match
    By mzimit in forum Excel General
    Replies: 0
    Last Post: 03-19-2008, 08:19 AM

Tags for this Thread

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