PatRichard
New Member
- Joined
- Dec 29, 2018
- Messages
- 29
- Office Version
- 365
- Platform
- Windows
I need to take a returned latitude and longitude value and split it into two cells. And for each, I need to limit the values to 6 digit places.
For example, I get back a value of "42.3006892,-83146552" and put it into Q6. I need it to have one cell (latitude) with 42.300689 and one (longitude) with -83.314655.
For the latitude, I can use
and get what I need. For the longitude, the closest I've figured out is
. I just haven't figured out the best way of getting the longitude to six decimal places. My bigger question is whether I'm headed in the right direction, or if there is a more elegant approach? Longitude can be >= 100, so I can't simply just use LEFT().
Thoughts?
For example, I get back a value of "42.3006892,-83146552" and put it into Q6. I need it to have one cell (latitude) with 42.300689 and one (longitude) with -83.314655.
For the latitude, I can use
Excel Formula:
LEFT(Q6, FIND(",", Q6) - 2)
Excel Formula:
RIGHT(Q6, LEN(Q6) - FIND(",", Q6))
Thoughts?