I have model numbers that are either just seven digits or some are seven digits followed with a dash and up to 5 more characters. I have a vendor that will add three numbers to the front, then a dash, then my model number with sometimes putting a dash where is is suppose to be. Confused yet?
If you look at the attachment, I use the following formula.....=IF(LEN(TRIM(A2))=11,TRIM(MID(A2,FIND("-",A2)+1,7)),TRIM(MID(A2,FIND("-",A2)+1,7)&"-"&RIGHT(A2,LEN(A2)-11))) but it puts in 2 dashes in the place where they actually use my dash. I understand why it does it but I don't understand how to stop it. Is there a "FIND first occurrence" and do this, and skip the next occurrence?
Good luck and thanks for the help.
Bookmarks