This works for all the examples you gave, in B5 copied down
=IF(AND(CODE(MID(A5,1,1))>=65, CODE(MID(A5,1,1))<=90),MID(A5,1,SEARCH(".",A5)-1),MID(A5,SEARCH(".",A5)+1,SEARCH("^", SUBSTITUTE(A5,".","^",2))-SEARCH(".",A5)-1))
This works for all the examples you gave, in B5 copied down
=IF(AND(CODE(MID(A5,1,1))>=65, CODE(MID(A5,1,1))<=90),MID(A5,1,SEARCH(".",A5)-1),MID(A5,SEARCH(".",A5)+1,SEARCH("^", SUBSTITUTE(A5,".","^",2))-SEARCH(".",A5)-1))
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks