Hello all,
Looking for some help trying to clean some data I have. I have a list of names which have been given a number suffix but unfortunately not in the same way.
My attempt so far: in cell A1 I have "Johnathan Green - 159230". In cell B1 I put "=LEFT(B2, LEN(B2)-9)" to give me just the name, removing the number and also the " - " which was sandwiched between the name and the number.
Complication though:
I hope that makes sense. Any help much appreciated!
Philip
Looking for some help trying to clean some data I have. I have a list of names which have been given a number suffix but unfortunately not in the same way.
My attempt so far: in cell A1 I have "Johnathan Green - 159230". In cell B1 I put "=LEFT(B2, LEN(B2)-9)" to give me just the name, removing the number and also the " - " which was sandwiched between the name and the number.
Complication though:
- The numbers are not always the same length, most often they are 5 or 6 digits long but I have found others which are 3 or 4.
- The " - " sandwich between the name and the number is sometimes a ":"
- Sometimes there are numbers (or hyphens or colons) in the name eg. "Johnathan1 Green - 159230", or "Johnathan - Green - 159230" etc. However as a rule the part I want to get rid of always starts with a " - " or ":" (it just might not be the first time that a " - " ":" appears in the string).
I hope that makes sense. Any help much appreciated!
Philip