Hyperlinking a Mileage Calculator

HowlingWulf

New Member
Joined
Jun 28, 2013
Messages
7
Good Morning,

I am trying to hyperlink to google maps but in doing so I am also trying to substitute two values (postcodes) on my spreadsheet into the address from and the address to.
For example:

=HYPERLINK("https://maps.google.co.uk/maps?saddr="&SUBSTITUTE(C8," ",1)&"&daddr="&SUBSTITUTE(C10," ",1))

I have tried various iterations of this but to no avail. It keeps telling me it 'cannot open the specified file'.

Please can anyone help? It's driving me nuts (pun intended).

Huge thanks in advance.

Wulf
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
try this

=HYPERLINK("https://maps.google.co.uk/maps/dir/"&C8&"/"&C10)
 
Upvote 0
Many thanks AlanY, that works brilliantly.

Do you know a way I can get that to work as a button or as a different piece of text rather than a URL, i.e: 'Calculate Distance'?

Cheers
 
Last edited:
Upvote 0
Not to worry, I figured it out. Was reasonably simple I just couldn't see it for looking. Much obliged. Have a nice day.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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