Character / Number Sequence

RRatajczyk

New Member
Joined
May 16, 2018
Messages
22
Please Help!

I am looking for a formula that will identify/detect when a part number is identical (a match) in a long list of part numbers and where it is different in the sequence by one character or number. i.e. ABC123456 vs ABC123465

the result would be "True" where this occurs

In other words the part numbers are identical with the exception of one of the characters or numbers is out of sequence (= TRUE)

and the whole long list of part numbers is being evaluated / compared
 
Last edited by a moderator:
ok - so the MACRO and FORMULA I believe are working. However, I am not sure how to get the results? I am looking for some type of report that list all the part numbers that are duplicative (contain the same characters and/or numbers) but are transposed. Just a report showing me the results whereas I can see the list of parts that meet this condition?
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
=IF(COUNTIF($A$6:$A$10, A1), "Present", IF(SUMPRODUCT(COUNTIF($A$6:$A$10, Transpositions(A1))), "Transposed", "N/A"))
 
Upvote 0
ok - I don't know if it's operator error or what 's happening but the VBA Macro does not appear to be working? I am not even sure if there is something I need to do to run it or if it happens automatically when I add new part numbers? In any case mothing seems to be working? thanks
 
Upvote 0
See that $A$6:$A$10 in the formula?
 
Upvote 0
I just don't know that I loaded the VBA Macro Code correctly - not sure if I know what I'm doing here... How do you load the code you'd provided? And do I need to do something each time to run it or does it always run/work? thanks
 
Upvote 0
I thought you already had that working back in post #18 ?
 
Upvote 0
ok I got it to work again. However, there still may be an issue. i.e. ABC123456 should determine that there are 2 part numbers in the data set that match the criteria ABC123456 & BCA123456. The results are 1 which I assume is the first instance (ABC123456) and it's not recognizing a match (transposed) with BCA123456?
 
Upvote 0
As I continue on my quest to find a solution I am discovering more about what I am looking for. Problem Statement: I have a list of 30,000 part numbers and I would like to determine are either duplicates or have the same set of characters and numbers but in some transposed arrangement. I would like to be able to sort the part numbers that meet one or both of these conditions and still show the whole list. Or be able to filter on one or both of the met conditions. thank you
 
Upvote 0
As I continue on my quest to find a solution I am discovering more about what I am looking for. Problem Statement: I have a list of 30,000 part numbers and what I would like to determine is if there are any duplicate part numbers or part numbers that have the same set of characters and numbers but in some transposed arrangement. I would like to be able to sort the part numbers that meet one or both of these conditions and still show the whole list. Or be able to filter on one or both of the met conditions. thank you
 
Upvote 0
BCA123456 is not a transposition of a pair of adjacent characters from the string ABC123456. The function could readily be modified to return all transpositions (which would be 36 for a 9-character string instead of the current 9), but at some point you will bring your computer to its knees.

I think you need to come up with Plan B.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top