Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Can I remove last 3 characters in portion of a link?

I have example of a hyperlink that is fragmented for use of inserting a
variable,
e.g.: HYPERLINK($U$5&O9&$U$7,"1")

Need O9 (variable) to be truncated of last three characters, so far have:
=IF(RIGHT(O9,3)=".pk",HYPERLINK($U$5&O9&$U$7,"1"), HYPERLINK($U$5&O9&$U$7,"1"))

(need fix for 1st hyperlink expression "O9", to lose last 3 characters if
".pk")
thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Can I remove last 3 characters in portion of a link?

You can embed the if statement into the body of your formula:

=HYPERLINK($U$5&IF(RIGHT(O9,3)<".pk",O9,LEFT(O9,L EN(O9)-3))&U$7,"1")

nastech wrote:

I have example of a hyperlink that is fragmented for use of inserting a
variable,
e.g.: HYPERLINK($U$5&O9&$U$7,"1")

Need O9 (variable) to be truncated of last three characters, so far have:
=IF(RIGHT(O9,3)=".pk",HYPERLINK($U$5&O9&$U$7,"1"), HYPERLINK($U$5&O9&$U$7,"1"))

(need fix for 1st hyperlink expression "O9", to lose last 3 characters if
".pk")
thanks in advance


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
nastech
 
Posts: n/a
Default Can I remove last 3 characters in portion of a link?

awsome, thanks much..

"Dave Peterson" wrote:

You can embed the if statement into the body of your formula:

=HYPERLINK($U$5&IF(RIGHT(O9,3)<".pk",O9,LEFT(O9,L EN(O9)-3))&U$7,"1")

nastech wrote:

I have example of a hyperlink that is fragmented for use of inserting a
variable,
e.g.: HYPERLINK($U$5&O9&$U$7,"1")

Need O9 (variable) to be truncated of last three characters, so far have:
=IF(RIGHT(O9,3)=".pk",HYPERLINK($U$5&O9&$U$7,"1"), HYPERLINK($U$5&O9&$U$7,"1"))

(need fix for 1st hyperlink expression "O9", to lose last 3 characters if
".pk")
thanks in advance


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing automatic link Graham Poole Excel Discussion (Misc queries) 8 March 22nd 06 01:31 PM
Need to remove selected characters Natedanger Excel Discussion (Misc queries) 2 September 17th 05 02:35 PM
how do I remove a link between worksheeta? Weeksboro Excel Worksheet Functions 2 May 6th 05 09:31 PM
Breaking the link T New Users to Excel 1 May 4th 05 10:37 PM
Remove link to another workbook George Gee New Users to Excel 6 January 9th 05 11:24 PM


All times are GMT +1. The time now is 11:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"