• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Detecting unique values

Joe Shaer

New Member
Dear all,

I am working with a large data-set and need to find any duplicated values under a specific criteria.

I have two columns: 'Direction' and 'Assigned Number'.

Each direction is given an assigned number which can be repeated only in that direction but not in the opposite direction.

For example:
The EB (eastbound) has the number '100' and is repeated only in that direction.

I want to be able to search through the data to see if '100' is repeated in the WB and delete that row. Is there a function or a technique to do this?

I am attaching a sample.

1691002373704.png
 

Attachments

  • Joe Sample.xlsx
    10.5 KB · Views: 8
Test the following:
In cell C3 (leave C2 blank):
=IFERROR(IF(INDEX(A$2:A2,MATCH(B3,B$2:B2,0))<>A3,"delete",""),"")
and copy down.
It assumes the uppermost value in the list is the correct value.

1691021388632.png
 
Using 365
Code:
= FILTER(list, XLOOKUP(Number,Number,Direction) = Direction)
1691138847365.png
 

Attachments

  • Joe Sample.xlsx
    16.7 KB · Views: 7
Last edited:

Joe Shaer

Your thread's title is Detecting unique values.
You writing asks something else
I want to be able to search through the data to see if '100' is repeated in the WB and delete that row.
Is there a
function or a technique to do this?
Without new columns, this would be possible with VBA.
Your thread has opened in Ask an Excel question.
Do You would like to get that kind of sample?
 
Back
Top