Excel can extract coordinates from a Google Maps link that contains latitude and longitude as text. With a short link or place name, open Maps and copy the point's coordinates first; a formula can't extract numbers that aren't in the cell.
Also check what the numbers describe. Coordinates after @ describe the map view and may not identify the place you want.
In this guide
Check the link before choosing a formula
Put one complete URL in A2, with Latitude in B1 and Longitude in C1. Keep the original URL alongside the results so you can check each extracted pair later.
A Maps search URL containing query=41.40338%2C2.17403 contains a numeric search point. A link containing a business name instead of numbers needs a different route, even though both open Maps successfully.
A shortened maps.app.goo.gl link contains a redirect code, not a visible coordinate pair. Open it in your browser and inspect the expanded address, or use the direct coordinate-copy method in the next section.
A hyperlink can display a name instead of its destination address. These formulas read the visible cell text. Right-click a named hyperlink, choose Edit Hyperlink or Edit Link, and copy the address into a plain-text cell.
I'd check a few links manually before filling formulas through a large list. A spreadsheet full of valid-looking map centers can be more misleading than a clear formula error.
Copy the selected point when the URL isn't enough
On a computer, open Google Maps and find the exact place or point. Right-click that point on the map, then click the latitude-and-longitude pair at the top of the pop-up menu to copy it.

Paste the pair into a spare cell, such as D2. Google explains this coordinate-copy method, and it avoids guessing which numbers in a long place URL identify the point.
The first number is latitude; the second is longitude. Negative values matter: keep the minus sign and decimal point. Decimal latitude runs from -90 to 90, and longitude from -180 to 180.
In Microsoft 365, Excel 2024, or Excel for the web, split the copied pair with these formulas:
B2: =NUMBERVALUE(TRIM(TEXTBEFORE(D2,",")),".",",")
C2: =NUMBERVALUE(TRIM(TEXTAFTER(D2,",")),".",",")
The NUMBERVALUE part converts text using a decimal point, even if your regional number format is different. Excel installations that use semicolons between formula arguments need those separators changed when entering the formula.
If right-click opens an ordinary browser menu, position the pointer inside the map. Repeat the action on the intended point rather than copying coordinates from a nearby result or the map's center.
Extract a numeric query in newer Excel
Use this route only when A2 contains a URL with a numeric query= value. For example, the complete address can be https://www.google.com/maps/search/?api=1&query=41.40338%2C2.17403.
In D2, extract the query, stop at the next ampersand, and replace an encoded comma:
=SUBSTITUTE(TEXTBEFORE(TEXTAFTER(A2,"query="),"&",1,0,1),"%2C",",")
Then use the B2 and C2 formulas from the coordinate-copy section. D2 should contain only the comma-separated pair, while B2 and C2 should be numbers you can use in calculations.

The final 1 tells TEXTBEFORE to stop at the end of the text if there isn't another ampersand. Without it, a valid query at the end of the URL could return an error.
These text functions are available in Microsoft 365 and Excel 2024, including their Mac versions, and Excel for the web. Excel 2021 and older need the older-function method later in this guide.
If D2 contains a name, address, or a Place ID instead, don't force it through the numeric formulas. A Maps URL can identify a place without including its coordinates. Use the direct copy method for those rows.
Use an @ pair only when the map center is intended
Some long links contain text such as @41.40338,2.17403,17z. The first two numbers describe the map view. Extract them only when you actually want that center point.
For latitude in B2, use:
=NUMBERVALUE(TEXTBEFORE(TEXTAFTER(A2,"@"),","),".",",")
For longitude in C2, use:
=NUMBERVALUE(TEXTBEFORE(TEXTAFTER(TEXTAFTER(A2,"@"),","),","),".",",")
Both formulas start after the @ sign. The longitude formula then skips the first comma and stops at the next one, leaving out the zoom value that follows the pair.
Don't mix these results into a list of business locations without checking each selected place. Panning a map changes its view, while the business result can remain selected elsewhere on the screen.
For a mix of link formats, add a column showing which method you used. You can then review map centers separately from numeric search points and coordinates you copied by hand.
Split a copied pair in Excel 2021 or older
Keep the copied decimal pair in D2. Use LEFT, MID, and FIND instead of TEXTBEFORE and TEXTAFTER:
B2: =NUMBERVALUE(TRIM(LEFT(D2,FIND(",",D2)-1)),".",",")
C2: =NUMBERVALUE(TRIM(MID(D2,FIND(",",D2)+1,LEN(D2))),".",",")
This method works on the copied pair, so it doesn't require you to work out how each Maps URL is arranged. The Excel cell-splitting guide covers other ways to separate a combined text field.
For a batch already containing plain coordinate pairs, Data > Text to Columns can also split at a comma in desktop Excel. Leave empty destination columns so the split doesn't replace existing information.
If results show too few decimals, adjust the number format to display the precision you need. Formatting changes what appears in the cell; it doesn't improve the accuracy of the original location.
Check the results before using the list
Paste several resulting pairs into Maps, latitude first, and confirm that each points to the intended location. Compare the selected point, not just the city or general neighborhood.
A #NAME? error can mean the Excel version doesn't recognize a function. #N/A can mean a URL delimiter, the character the formula uses to split the text, is missing. Check the link format before hiding an error with IFERROR.
An address list without coordinates needs geocoding, which looks up a location's coordinates. Before moving the file to Sheets, save the numeric results you've checked.
The Short Version
Extract coordinates only from links that contain the required pair. For short links and uncertain place URLs, copy the actual point in Maps, split latitude and longitude in Excel, and check sample results on the map.
Checked December 2, 2026.







