+ Reply to Thread
Results 1 to 3 of 3

Can I remove last 3 characters in portion of a link?

  1. #1
    nastech
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: 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,LEN(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. #3
    nastech
    Guest

    Re: 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,LEN(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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1