Referencing cell contents in a web hyperlink

muyandrea

New Member
Joined
May 17, 2011
Messages
5
Hello!

I'm working on a project and have already learned a lot about Excel's options.. however there's one thing I can't figure out.

I'm hyperlinking to a large car rental website that offers services for several cities. However, I want it to automatically link to the city that appears in another cell on the same worksheet.

For example, I have a hyperlink in cell D2; if I write "Los Angeles" in the other cell (G1), I want the hyperlink to automatically link to the Los Angeles car rental website. Or, if I change G1's contents to "New York", I want the hyperlink to automatically link to the New York website. Is this possible?

How can I get the hyperlink to automatically search the contents of another cell? :eek:

Thanks! :p
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Where sheet3 A4 contains the word 'about'
You can use the concatenator '&' mid link too


Code:
=HYPERLINK("[URL]http://www.simplewebsite.org/[/URL]"& Sheet3!A4)
 
[/Cose]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,365
Messages
6,136,127
Members
449,993
Latest member
Sphere2215

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