+ Reply to Thread
Results 1 to 7 of 7

Make unique list from a cells in one row

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Make unique list from a cells in one row

    Hi everyone.
    I need a solution for making a unique list for cells from one row.
    In the pic C6:AP6 are some codes. I want to sort those codes with formula like shown in cells AR:AU. Advance filtering doesn't work in this case.

    I tried to find answer on many pages and nothing. Pls help. Thanks in advance.

    situation.gif

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Make unique list from a cells in one row

    Hi,

    It's not clear (at least to me) exactly what you want.

    You use terms like 'unique list', 'sorting; and 'filtering'.

    Please upload a workbook. It is always easier to advise if we can see your request in its context.

    Show a before and after situation and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    Please don't upload pictures. None of us is inclined to recreate your data when you have a workbook available - see guidelines in the Rules area of this forum.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Make unique list from a cells in one row

    If C6:AP6 is a valid numbers, enter in

    AR6,

    =MAX(C6:AP6)

    In AS6,

    =LARGE($C6:$AP6,1+COUNTIF($C6:$AP6,">="&N(AR6)))

    Then copy AS6 to AT6
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Registered User
    Join Date
    01-29-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Make unique list from a cells in one row

    Quote Originally Posted by Haseeb A View Post
    If C6:AP6 is a valid numbers, enter in

    AR6,

    =MAX(C6:AP6)

    In AS6,

    =LARGE($C6:$AP6,1+COUNTIF($C6:$AP6,">="&N(AR6)))

    Then copy AS6 to AT6
    This sounded like a good solution, but when I tried to execute formula 'the formula you typed contains an error' pop-up.
    The thing is in the future I will input some different working codes in this table, and it would be great that some formula recognize this entry and index it in the green colored cells. By now I have input 3 working codes that would be great to be indexed as a unique entry making it a unique list of working codes that appears in 'radni nalog' column.

    Here is the example table
    example table.xlsx

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: Make unique list from a cells in one row

    You can put this array* formula in cell AQ1:

    =IFERROR(INDEX($E$1:$AO$1,MATCH(0,IF($E$1:$AO$1<>"",COUNTIF($AP$1:AP1,$E$1:$AO$1),1),0)),"")

    and then copy it across (e.g. to AV1). It will give you unique values from the range E1 to AO1, ignoring blanks.

    *An array formula must be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>. If you do this correctly then Excel will wrap curly braces { } around the formula when viewed in the formula bar, but you must not type these yourself. If you need to amend the formula subsequently, you must use CSE again.

    Hope this helps.

    Pete

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Make unique list from a cells in one row

    See the attached.

    This will give all the unique NUMBERS entered in B1:AO1 in descending order.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-29-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Make unique list from a cells in one row

    Quote Originally Posted by Haseeb A View Post
    See the attached.

    This will give all the unique NUMBERS entered in B1:AO1 in descending order.
    Very good, very elegant. I'm charmed and happy because this solves my problem :D
    Thank you all for helping me with this (for me) mind blowing puzzle!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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