Hi,
I have these data "SUSAR No. 197-217"
I need to get result 197 and 217
which is 3 character before "-" and 3 character after "-". May I know of a formulae?
Hi,
I have these data "SUSAR No. 197-217"
I need to get result 197 and 217
which is 3 character before "-" and 3 character after "-". May I know of a formulae?
Your limited example data implies, there will always be 3 characters before AND after. I suspect not.
Supply some more example data please.
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Hi yes it is always 3 characters
I assume that 197 and 217 will be put in two separate cells.
Enter formula in B1 and drag formula across to C1
Formula:
Please Login or Register to view this content.
v A B C 1 SUSAR No. 197-217 197 217
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Assuming there's only ever one hyphen in the string
=MID(A1,FIND("-",A1)-3,3)
and
=MID(A1,FIND("-",A1)+1,3)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks