Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2006

Tip: Looking for answers? Try searching our database.

Format Cells - Hyperlink

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dileep Chandran - 30 Oct 2006 06:47 GMT
Hi,

I am just trying to format a range of cells. What I need is, If we
enter a web address say, http://yahoo.com, the cell should
automatically convert it as http://www.yahoo.com.

Is it possible?. Any help is greatly appreciated.

Thanks

-Dileep Chandran
Max - 30 Oct 2006 07:11 GMT
One guess ... with source entries in A1 down,
perhaps in B1, copied down:
="http://www."&MID(A1,SEARCH("/",A1)+2,99)
(above returns as text)

Or, as clickable hyperlinks, in B1 down
=HYPERLINK(A1,"http://www."&MID(A1,SEARCH("/",A1)+2,99))
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Hi,
>
[quoted text clipped - 7 lines]
>
> -Dileep Chandran
Max - 30 Oct 2006 07:18 GMT
Correction to 2nd one, sorry ...
> Or, as clickable hyperlinks, in B1 down
> =HYPERLINK(A1,"http://www."&MID(A1,SEARCH("/",A1)+2,99))

Try instead in B1:
=HYPERLINK("http://www."&MID(A1,SEARCH("/",A1)+2,99),"http://www."&MID(A1,SEARCH("/",A1)+2,99))
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Dileep Chandran - 30 Oct 2006 07:35 GMT
Max,

This formula is working fine. Thanks !
But if the cell contains an address in the desired format (ie. starting
with "http://www."), the formula should not change it. Is there a way
to do it?

Is my question clear?

Dileep
Max - 30 Oct 2006 07:44 GMT
Try this in B1:
=IF(ISNUMBER(SEARCH("www",A1)),HYPERLINK(A1,A1),HYPERLINK("http://www."&MID(A1,SEARCH("/",A1)+2,99),"http://www."&MID(A1,SEARCH("/",A1)+2,99)))
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Max,
>
[quoted text clipped - 6 lines]
>
> Dileep
Dileep Chandran - 30 Oct 2006 09:26 GMT
Max,

Thank you very much for the help. This is what exactly I was looking
for.

-Dileep
Max - 30 Oct 2006 10:03 GMT
Pleasure` Dileep.
Thanks for the feedback ..
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Max,
>
> Thank you very much for the help. This is what exactly I was looking
> for.
>
> -Dileep
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.