Why can I not manage to merge these two formula - brain block central!

Upex

Board Regular
Joined
Dec 29, 2010
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Hope you're well and safe.

Having another mental meltdown and wonder if anyone can steer me right please?

I have a start address in E1, end address in F1

In M1 I have:
=CONCATENATE("Google Maps",SUBSTITUTE(E1," ","+"),"&daddr=",SUBSTITUTE(F1," ","+"))

in M2 I have
=HYPERLINK(M1)

Which works. I click it and get the maps pop up for the two destinations. However, I can't seem to get this to function in one cell, i.e. M1 being:

=HYPERLINK(CONCATENATE("Google Maps",SUBSTITUTE(E1," ","+"),"&daddr=",SUBSTITUTE(F1," ","+")))

Just get an error pop up to say cannot open the specified file?

Cheers in advance everyone
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Just in case it helps, the "Google maps" elements above are actually the web address:

h t t p :/ /maps.go ogle.co.uk/ maps?f= d&source=s_ d&saddr=

without the spaces of course- it linked them when posting
 
Upvote 0
try...
Excel Formula:
=HYPERLINK(CONCATENATE("https://www.google.com/maps?saddr=",SUBSTITUTE(E1," ","+"),"&daddr=",SUBSTITUTE(F1," ","+")))
 
Upvote 0
Solution
Many thanks Kirk, that works!

However, I can't see the difference between what I had tried (posted above) and what you supplied. Really must be having a blind/bad day - what did you do differently? Only thing just spotted was the HTTPS - is that what did it?
 
Upvote 0
I spelled out the entire URL beginning with https and also included the starting address field name (saddr=). I'm glad you got it working.
 
Upvote 0

Forum statistics

Threads
1,215,346
Messages
6,124,417
Members
449,157
Latest member
mytux

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