Hi,
I have been fighting with this for a few days. I am trying to find the first non-alphanumeric character in a cell then remove that character and all characters following. The data I am working with is in a csv file and looks as follows:
Bus Stop
Assembly / Ex...
In Class
Yard, Corrido...
I want to remove everything after and including "/" as well as everything after and including "," so the data needs to end up looking like:
Bust Stop
Assembly
In Class
Yard
Once I have cleaned up the data it is going to be copied to another worksheet and, as the original csv file will not be kept, there can't be a link back to the original worksheet.
I have used =LEFT(D24,FIND("/",D24)-1) which works on the cells with "/" in them but returns #VALUE (of course) for the cells with "," in them. In an attempt to allow for the non-alphanumeric character being either / or , I have tried using IF with LEFT, I have tried OR with IF and LEFT, I have tried using an array {"/",","} but have not been able to make anything work. I would really appreciate assistance with this problem.
Thank you.
I have been fighting with this for a few days. I am trying to find the first non-alphanumeric character in a cell then remove that character and all characters following. The data I am working with is in a csv file and looks as follows:
Bus Stop
Assembly / Ex...
In Class
Yard, Corrido...
I want to remove everything after and including "/" as well as everything after and including "," so the data needs to end up looking like:
Bust Stop
Assembly
In Class
Yard
Once I have cleaned up the data it is going to be copied to another worksheet and, as the original csv file will not be kept, there can't be a link back to the original worksheet.
I have used =LEFT(D24,FIND("/",D24)-1) which works on the cells with "/" in them but returns #VALUE (of course) for the cells with "," in them. In an attempt to allow for the non-alphanumeric character being either / or , I have tried using IF with LEFT, I have tried OR with IF and LEFT, I have tried using an array {"/",","} but have not been able to make anything work. I would really appreciate assistance with this problem.
Thank you.