Google MAP URL Function

McNab

New Member
Joined
Jun 26, 2021
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
  2. MacOS
Hi Everyone

I have done a bit of VBA coding but usually it involves modifying existing code I have found on forums such as these - so I am at a fairly basic level.
In particular I have little to no experience in writing excel functions.

I am working with two different types of Google Map URL's where I need to extract the latitude and longitude in each case.

These are the two different "types" of Google Map URL's I am dealing with.

(1) 25°03'32.9"N 55°10'05.2"E

(2) 25°04'57.1"N 55°09'42.7"E · Dubai - United Arab Emirates

I need a two separate functions (or even one if its possible) to be able to extract the latitude and longitude in both cases.
I can use simple excel functions such as find, len, mid, etc and ask the specific questions of each URL to arrive at the right answer but it feels like a very rudimentary way to accomplish this task.

If anyone could help me either with a workable function or point me in the right direction it would be greatly appreciated.

I was only able to find a function that separated map URLs in this format (Google Maps) -- where it starts with an @ and is divided by comma's on this forum. I tried to rejig that function to deal with these other types of URL's but without success.

Any/all help appreciated for the project I am working on -- and to be able to understand and write excel functions.

Thank you.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Perhaps the google URL's didn't show properly on my post.
Here is a picture of them so you know the specific traits of each.
Thank you.
 

Attachments

  • Screenshot 2023-06-12 at 03.17.21.png
    Screenshot 2023-06-12 at 03.17.21.png
    21 KB · Views: 20
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top