Hello,
My vendors send me files with alphanumeric part numbers.
Is there a way to quickly insert a hyphen between the alpha and the number? Here are some examples:
The vendors worksheet reads: I would like it to read:
AR11A AR-11-A
SBK870T SBK-870-T
MBPT-123AB MBPT-123-AB
If anyone could help me with this I would appreciate it.
Thank You,
JS Peterson
Last edited by jspeterson; 02-09-2012 at 08:53 PM.
jspeterson,
Is it always in the format of 'group of letters' - 'group of numbers' - group of letters'?
Hope that helps,
~tigeravatar
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Try this in B2, assuming your data is in A2 down
Drag/Fill Down.=SUBSTITUTE(A2,LOOKUP(99^99,--("0"&MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),ROW($1:$10000)))),"-"&LOOKUP(99^99,--("0"&MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),ROW($1:$10000)))) &"-")
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
Hello tigeravatar,
Marcol answered my question. Thank you very much for your reply.
JSPeterson
Hello Marcol,
That worked perfectly.
Thank You very much for your help.
JSPeterson
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks