+ Reply to Thread
Results 1 to 4 of 4

Extract unique values based on first 5 characters in the string

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Extract unique values based on first 5 characters in the string

    Hello guru's,

    I cannot find a solution to extract unique values from the list of products. It wouldn't be this hard if the list didn't contain many duplicates, which I want to avoid having in the result. Has anybody got an idea how to get this working? I have built a quick dummy for you to see what I'm after, as explaining the issue isn't what I'm strong at...

    Dummy attached. Thanks in advance!
    Attached Files Attached Files

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

    Re: Extract unique values based on first 5 characters in the string

    I've created something like this (picture as guide how to deal with and formulas below to paste into).
    As 1st - created dynamic list which contains all matched values.
    As 2nd - on list as above display unique values.

    Capture.JPG

    Formula of dynamic array:
    Please Login or Register  to view this content.
    Formula from K8:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Extract unique values based on first 5 characters in the string

    Oh, thanks KOKOSEK! A piece of art... I have managed to achieve the same result, but with a bunch of helper columns, your method is much tidier!

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Extract unique values based on first 5 characters in the string

    Hi All,

    I guess I'm out of time...in G8 to be copied down.


    =IFERROR(INDEX(I$8:I$25,MATCH(1,INDEX((LEFT(I$8:I$25,5)=E$8)*(COUNTIF(G$7:G7,I$8:I$25)=0),),0)),"")

    It should do the trick too
    Attached Files Attached Files
    Last edited by canapone; 10-14-2019 at 10:08 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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] Excel formula to extract unique values based on conditions
    By gideone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2019, 10:44 AM
  2. [SOLVED] Extract Unique values based from multiple columns
    By kobiashi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-14-2018, 10:10 AM
  3. Replies: 7
    Last Post: 03-18-2016, 05:09 AM
  4. [SOLVED] Extract Unique Text Values based on Multiple Criteria
    By Kattenhove in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-26-2014, 07:59 AM
  5. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  6. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  7. Extract Unique Values from an Array based on Criteria
    By ronleex324 in forum Excel General
    Replies: 1
    Last Post: 10-04-2011, 06:37 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