Sep 08 2022 01:27 AM
Trying to figure out a sort on a table.
my problem is as follows.
a column contains serial no's . There are wrongly entered serial no's ( without a prefix )
eg. SN12345 = Correct, 12345 = Incorrect
I would like to group the correct and incorrect no's together in some sort of sort. Is this possible using just the data in the column?
Sorry if i'm not making this clear.
Hope someone can help?
Sep 08 2022 01:50 AM
@ColinL965 Would it work if you created a new column that fixes the issue of the incorrect serial numbers. Something like this:
Sep 08 2022 01:52 AM
A quick solution would be to add an additional column with the formula...see attached file.
to find Text
=LEFT(A3,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&"0123456789"))-1)
to show result
=IF(B1=""; "Incorrect";"Correct")
Hope I could help you with these information.
I know I don't know anything (Socrates)
Sep 08 2022 02:31 AM
Sep 08 2022 02:41 AM
This has possibilities, however it is complicated by the fact that some of the serial numbers without SN prefix are actually genuine serial No's for other non-related units ( i would need to look at the complete dataset to determine this however ) I think it would be too complicated to work out criteria to distinguish between them, but i think this could be a good starting point.
Sep 08 2022 02:47 AM
Sep 08 2022 03:15 AM
It is not dependent on the letters...if letters then correct, if not then incorrect...any text.
Attached is the example in the file expanded with other letters...otherwise VBA would be an additional option.