+ Reply to Thread
Results 1 to 8 of 8

UNIQUE list of cells ending with...

  1. #1
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Question UNIQUE list of cells ending with...

    Hi all,

    I'm after a formula which extracts a UNIQUE list of cells that end in a given character (actually, a list of cells that don't end in A,B,C, or D).
    I was expecting something broadly along the lines of
    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files
    Last edited by aurelien_21; 09-21-2023 at 09:59 AM.

  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,852

    Re: UNIQUE list of cells ending with...

    Try this:

    =UNIQUE(FILTER($A:$A,(RIGHT($A:$A,1)<>"A")*(RIGHT($A:$A,1)<>"B")*(RIGHT($A:$A,1)<>"C")*(RIGHT($A:$A,1)<>"D")))
    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
    Registered User
    Join Date
    12-17-2019
    Location
    Leeds, UK
    MS-Off Ver
    365
    Posts
    61

    Re: UNIQUE list of cells ending with...

    That's great, thanks so much
    I've realised the letters would actually be embedded in cells (in column B) rather than at the end (like in Column A) , would you mind helping me with an appropriate MID() ? I've attached a file for ease. thanks again

  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,852

    Re: UNIQUE list of cells ending with...

    No - not unless they are all in the same position!

    Time for you to provide a sample workbook with several rows of truly respresentative data with EXPECTED RESULTS mocked up. Then I'll have a look. Not going to guess, though.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: UNIQUE list of cells ending with...

    Is this what you wanted? If not, upload a file WITH expected answers.

    =LET(A,A3:B100,UNIQUE(TOCOL(IF(ISERROR(MATCH(MID(INDEX(A,,2),SEARCH("-",INDEX(A,,2))-1,1),{"A","B","C","D"},0)),INDEX(A,,1),z),3)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,361

    Re: UNIQUE list of cells ending with...

    I've realised the letters would actually be embedded in cells (in column B) rather than at the end (like in Column A) , would you mind helping me with an appropriate MID()
    Here is my effort:

    =LET(
    r,B3:B86,
    c,CODE(RIGHT(TEXTBEFORE(r,"-"),1)),
    --UNIQUE(TEXTBEFORE(FILTER(r,(c<65)+(c>68)),"-"))
    )
    Last edited by CheeseSandwich; 09-21-2023 at 11:02 AM.
    If things don't change they stay the same

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: UNIQUE list of cells ending with...

    H3=unique(filter(a3:a100,isna(match(right(a3:a100,1),trim(textsplit(mid(h2,search("non",h2)+4,99),",")),0))*(a3:a100<>0)))

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: UNIQUE list of cells ending with...

    Or try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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 List Across Selected Cells
    By Skittlebeanz in forum Excel General
    Replies: 6
    Last Post: 05-03-2023, 04:54 AM
  2. Extracting a unique list from cells with a lot of repeats
    By hobofromdowntown in forum Excel General
    Replies: 4
    Last Post: 10-30-2019, 03:27 PM
  3. [SOLVED] how to reference a list of unique cells from one worksheet to another
    By Mansfieldexcel in forum Excel General
    Replies: 4
    Last Post: 11-26-2017, 01:22 PM
  4. Replies: 22
    Last Post: 07-08-2015, 02:15 PM
  5. [SOLVED] Make unique list from a cells in one row
    By biber in forum Excel General
    Replies: 6
    Last Post: 04-07-2012, 03:43 PM
  6. List Unique Values of Visible Cells
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2010, 10:17 AM
  7. generating list of names ending by a variable string
    By DaSpunkyGenius in forum Excel General
    Replies: 2
    Last Post: 10-24-2006, 03:04 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