I'd like to have excel create a link to a fixed google map based on text from another cell. Here's a link I found to provide a static google map of any location:
http://maps.google.com/maps/api/stat...p&sensor=false
That link will produce a static map of Boston, MA. But I can't get Excel to fill that small portion of the link that specifies location with whatever I type in a different cell.
Example: In cell A1, I have "Boston, MA". In cell A2, I would like to have excel replace a portion of a fixed link with the text from A1.
http://maps.google.com/maps/api/staticmap?center=THIS PART HERE SHOULD FILL WITH THE ADDRESS FROM CELL A1&zoom=15&size=512x512&maptype=roadmap&sensor=false
But whenever I type:
=HYPERLINK("http://maps.google.com/maps/api/staticmap?center=A1&zoom=15&size=512x512&maptype=roadmap&sensor=false";"map"),
The map produced actually uses the text A1, rather than the text from the cell A1.
How do I get it to populate the text from the cell into that portion of the link?
Thanks!
Last edited by NBVC; 06-13-2011 at 07:40 AM.
Try:
=HYPERLINK("http://maps.google.com/maps/api/staticmap?center="&A1&"&zoom=15&size=512x512&maptype=roadmap&sensor=false";"map")
I am not sure, though if you should have a ; or , to separate link_location from friendly_name in formula... seeing as you are in North Carolina?
.. if above doesn't work, try:
=HYPERLINK("http://maps.google.com/maps/api/staticmap?center="&A1&"&zoom=15&size=512x512&maptype=roadmap&sensor=false","map")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
You can make this more helpful:
=HYPERLINK("http://maps.google.com/maps/api/staticmap?center="&A1&"&zoom=15&size=512x512&maptype=roadmap&sensor=false","Map of " & A1)
Which will then display "Map of Boston, MA" rather than just "map"
Regards
Solved my problem! Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks