jimmy2times
Board Regular
- Joined
- Aug 8, 2014
- Messages
- 69
Hello I have a column in my tab called company name that needs data cleaning. The data looks like this
Company ABC-London
Company DEF-Manchester
Company A Ltd
Company B Ltd.
Company C,
I want to remove everything after the company name EG hyphen, comma, full stop,place.
The formula I am using is =left(A2(search(",",A2)-1). This works if I have a hyphen and the town. EG Company ABC-London but will return a #value error for the other examples provided.
Can the formula be adjusted to clean the other data entries without returning an error message? So the result should e
Company ABC
Company DEF
Company A Ltd
Company B Ltd
Company C
Any help would be much appreciated.
Kind Regards
Company ABC-London
Company DEF-Manchester
Company A Ltd
Company B Ltd.
Company C,
I want to remove everything after the company name EG hyphen, comma, full stop,place.
The formula I am using is =left(A2(search(",",A2)-1). This works if I have a hyphen and the town. EG Company ABC-London but will return a #value error for the other examples provided.
Can the formula be adjusted to clean the other data entries without returning an error message? So the result should e
Company ABC
Company DEF
Company A Ltd
Company B Ltd
Company C
Any help would be much appreciated.
Kind Regards