• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extract data from a cell

Dear AliGW,
Is it possible to trim the °
Instead of -163.94° is it possible to display only -163.94
Thank you
 
Great! :)

Just in case, the double negative or unary (--) forces the result to be a numerical value (and right-aligned) instead of a text string (left-aligned).
 
This for the first value:

=--LEFT(MID(D9,FIND("=",D9)+2,7),FIND(" ",MID(D9,FIND("=",D9)+2,7))-1)

This still works for the second value:

=--SUBSTITUTE(MID(D9,FIND(",",D9)+2,8),"°","")
 
Back
Top