Help with Formula to Identify Partial Duplicates
Hello!
I am trying to compile a formula that will look for partial (left 6 characters) matches in a column and indicate "Match" in column named "Duplicate". I am currently using the below formula however it returns "match" when there is no match.
=IF(LEFT([LAST CUSIP]@row, 6) = LEFT([LAST CUSIP]@row + 1, 6), "match", "")
the attached image shows the 2nd and 3rd row qualify as a match, but "match" is reflected for other rows also. Ultimately what I am trying to do is indicate the rows that share the first 6 characters but the last 3 characters at "XXX" so they can be filtered out.
Answers
-
I missed that you're only looking to match the first six characters.
-
I was able to do this with an added helper column I named LEFT to 1st pull the left 6 characters out.
=LEFT([LAST CUSIP]@row, 6)
Then I use this formula to find matches
=IF(COUNTIFS(LEFT:LEFT, FIND(LEFT@row, @cell) >= 1) > 1, "Match")
I'm pretty sure you can combine them to avoid the helper column but I'm struggling to get it to work at moment.
-
Okay, try this. No need for helper.
=IF(COUNTIFS([LAST CUSIP]:[LAST CUSIP], FIND(LEFT([LAST CUSIP]@row, 6), @cell) > 0) > 1, "Match")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 349 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!