I have a small issue with the LEFT and RIGHT Function which has me scratching my head....
I am using long/latitude information which comes in in the following format.....
-33.8688197 , 151.2092955
37.7749295 , -122.4194155
But I want to end up with something like ..
{lat: 37.7749295, Lng: -122.4194155},//San Francisco
I currently use the following
=IF(H5<>"","{lat: "& LEFT(H5,(FIND(",",H5,1)-1))&", lng: "& RIGHT(H5,(FIND(",",H5)+1))&"}," & " //" & (D5),"")
And mostly its all good....but for th first of the above I get a stray "," after "lng:" in the result
{lat: -33.8688197 , lng: , 151.2092955},//sydney
It has me "confused"
What am I doing wrong ?
Andrew