rcrecelius
Technical User
I have a problem that I face on a somewhat regular basis.
I have part numbers which may have a combination of letters, dashes, and numbers. I have to go thru and manually delete the dashes from some part numbers but not all of them.
This is the desired "format"...
If the dash is between a letter and a number - delete it.
If the dash is between 2 numbers or 2 letters - keep it.
"Good examples" - keep the dash
A10-1
204-166
735-10
2035E-S
"Bad examples" - delete the dash
A-10
2035-ES
Im dealing with files sent from our vendors so the format varies...sometimes all are formatted as text and other times only the ones that contain letters are formatted as text.
Is there an easy solution to this conditional dash delete?
I have part numbers which may have a combination of letters, dashes, and numbers. I have to go thru and manually delete the dashes from some part numbers but not all of them.
This is the desired "format"...
If the dash is between a letter and a number - delete it.
If the dash is between 2 numbers or 2 letters - keep it.
"Good examples" - keep the dash
A10-1
204-166
735-10
2035E-S
"Bad examples" - delete the dash
A-10
2035-ES
Im dealing with files sent from our vendors so the format varies...sometimes all are formatted as text and other times only the ones that contain letters are formatted as text.
Is there an easy solution to this conditional dash delete?