Excel formulas on triming a cell value -
i want trim row in excel contains following values:
row row b texas/dallas 5 texas/austin 10 california/sf 5 california/la 20
to
row row b texas 5 texas 10 california 5 california 20
it sounds want value of left of /
symbol in particular field. that, can use following formula:
=left(a1,find("/",a1)-1)
where a1
cell want change.
here's how works:
find("/", a1)
finds first instance of "/" in text in a1
, returns it's position.
then left(a1, <#>)
takes characters left of position calculated previous expression.
Comments
Post a Comment