+ Reply to Thread
Results 1 to 7 of 7

GET Unique, From Vertical to Horizontal

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    GET Unique, From Vertical to Horizontal

    In Column A, starting A1 :

    L1
    L1
    L6
    L6
    L1
    L6

    I want : in B1:C1 to have L6 L1 (C1=L1, B1=L6)

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: GET Unique, From Vertical to Horizontal

    What's the logic here? Why should L6 come before L1?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: GET Unique, From Vertical to Horizontal

    That is how I need it !

    Or maybe more simple :
    In Column A, B
    A B

    X L1
    X L6
    Y L1
    Y L8
    Z L2
    Z L6

    If C1=X then D1=L6, E1=L1

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: GET Unique, From Vertical to Horizontal

    This doesn't answer my question. Why should L6 come before L1? In the original list L1 is before L6.

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: GET Unique, From Vertical to Horizontal

    That is how I need it, from Right to Left !

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: GET Unique, From Vertical to Horizontal

    OK - that makes sense now that you have said "from right to left" - this was the crucial bit of information you failed to give before.

  7. #7
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: GET Unique, From Vertical to Horizontal

    A
    B
    C
    D
    E
    1
    X
    L1
    X
    L6
    L1
    2
    X
    L6
    3
    Y
    L1
    4
    Y
    L8
    5
    Z
    L2
    6
    Z
    L6


    A
    B
    C
    D
    E
    1
    X
    L1
    Y
    L8
    L1
    2
    X
    L6
    3
    Y
    L1
    4
    Y
    L8
    5
    Z
    L2
    6
    Z
    L6



    A
    B
    C
    D
    E
    1
    X
    L1
    X
    =IFERROR(INDEX($B$1:$B$6,AGGREGATE(14,6,IF($A$1:$A$6=$C$1,ROW($A$1:$A$6),""),COLUMN()-3)),"")
    =IFERROR(INDEX($B$1:$B$6,AGGREGATE(14,6,IF($A$1:$A$6=$C$1,ROW($A$1:$A$6),""),COLUMN()-3)),"")
    2
    X
    L6
    3
    Y
    L1
    4
    Y
    L8
    5
    Z
    L2
    6
    Z
    L6
    Sheet: Sheet1

    into D1:

    Please Login or Register  to view this content.
    is array formula so have to be accept with Ctrl+Shift+Enter not just Enter.
    Then drag it right as needed.
    Last edited by KOKOSEK; 10-28-2019 at 01:14 PM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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] Unique Horizontal list from vertical list
    By juriemagic in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-27-2019, 08:18 AM
  2. Replies: 16
    Last Post: 06-01-2017, 06:01 PM
  3. Transposing repeating vertical data to horizontal data but retaining unique values only
    By mgcarino14 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 12:57 AM
  4. Replies: 6
    Last Post: 11-20-2011, 06:15 AM
  5. from horizontal to vertical
    By mlecho in forum Excel General
    Replies: 5
    Last Post: 05-06-2007, 06:47 AM
  6. [SOLVED] Vertical into Horizontal
    By dthmtlgod in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 12:40 PM
  7. Vertical to horizontal
    By swchee in forum Excel General
    Replies: 5
    Last Post: 06-19-2005, 11:25 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