+ Reply to Thread
Results 1 to 4 of 4

Finding Unique Values Looking up and down

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Finding Unique Values Looking up and down

    hi,
    i have a least of numbers. i am trying to find all the unique vales and create a Unique ID for each entry. right now my index match only looks up to find duplicates. i want it to also look below.
    i am using this now:
    =IFERROR(INDEX($AD$1:$AD1,MATCH(1,MMULT(--($AE$1:$AL1=$AE2),TRANSPOSE(COLUMN($AE$1:$AL1)^0)),0)),MAX(AD$1:AD1)+1).
    the way my data is sorted now, it will never be an issue, but it is possible for future entries to not fit a match.
    any help?
    thanks!
    see attached sample for clarity
    Attached Files Attached Files

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

    Re: Finding Unique Values Looking up and down

    Why do rows 2 to 5 all 4 get the same number (1001?)?
    And you indicate that the current formula now works well because of the way your data is sorted? How should the table be sorted so that the formula works correctly?

  3. #3
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: Finding Unique Values Looking up and down

    sorry, its my first time posting on here and I'm not sure the best way to communicate this.

    my original data set was a bunch of contacts with names, email, and phone numbers collected over time. there are many duplicate contacts but not consistent data for each(names may be misspelled, different emails and phone numbers under each entry etc). I am trying to consolidate all of the data by looking for any overlapping info-if it either shares an email, number, etc. the numbers in my sample represent different emails and phone numbers.

    row 2-5 all have overlapping data - ie: they share some numbers. being that at least one cell in each of those rows match, i want any row containing any of those values (2,3,4,or 5) to share the same ID (1001). (in my actual data set this will show me that they are all actually the same person)

    Sorting: if in my sample row 4 and row 2 would switch, they would end up with 2 different id's (1001 and 1002). i am looking for a formula that wouldnt have that issue

    i could always add another match to column c and so on like this:
    =IFERROR(INDEX($A$1:$A1,MATCH(1,MMULT(--($B$1:$H1=$c2),TRANSPOSE(COLUMN($B$1:$H1)^0)),0)),IFERROR(INDEX($A$1:$A1,MATCH(1,MMULT(--($B$1:$H1=$B2),TRANSPOSE(COLUMN($B$1:$H1)^0)),0)),MAX(A$1:A1)+1)
    however, i keep adding data which might go past the columns i am currently using, and i dont want to have to manually add for each column if necessary

    sorry if it still isnt clear. im not great with my words

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Finding Unique Values Looking up and down

    Sorry for the long formula, but I noticed no one else has responded, and I spent some time on it, so here it is. Put this in cell A2, then copy down.

    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] Finding unique values
    By sniper1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2021, 06:21 PM
  2. [SOLVED] Finding Unique values out of two Colomns
    By BART_21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2019, 05:04 AM
  3. [SOLVED] Finding Unique Values across 2 columns
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2018, 03:17 PM
  4. finding unique values and pasting
    By Liju144 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2014, 05:28 AM
  5. Finding All Unique Values In One Column
    By allsystems in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-22-2014, 05:22 PM
  6. Finding Unique Values
    By davidimurray in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2007, 05:02 AM
  7. Finding all unique values
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2005, 09:05 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