+ Reply to Thread
Results 1 to 4 of 4

I want to remove the "/" from the end of a URL and add .asp to the end

  1. #1
    Registered User
    Join Date
    08-12-2022
    Location
    India
    MS-Off Ver
    2016
    Posts
    2

    Question I want to remove the "/" from the end of a URL and add .asp to the end

    I want to remove the "/" from the end of a URL and add .asp to the end
    e.g. abc.com/page1/ needs to be converted to abc.com/page1.asp

    For some values, the "/" can be the second occurrence.
    e.g. abc.com/category1/page1/. In this case I need to replace the / at the end and not the one before "page1". So what I wanted in this case is abc.com/category1/page1.asp

    In rare cases, the "/" can be the third occurrence which needs to be replaced with ".asp".

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,412

    Re: I want to remove the "/" from the end of a URL and add .asp to the end

    Welcome to the forum.

    Try this:

    =LEFT(A1,LEN(A1)-1)&".asp"
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-12-2022
    Location
    India
    MS-Off Ver
    2016
    Posts
    2

    Re: I want to remove the "/" from the end of a URL and add .asp to the end

    Thank you very much. It works perfectly.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,412

    Re: I want to remove the "/" from the end of a URL and add .asp to the end

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 10-21-2019, 03:34 PM
  2. "Add Row" and "Remove Row" Buttons... adding rows with formulas down filled
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 02:44 AM
  3. Replace "_" with "." and remove Trailing Alpha (where and when applicable)
    By chacamasur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2014, 02:22 PM
  4. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  5. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  6. [SOLVED] UDF to remove "equivalent" expressions from a ";" delimited string
    By dredwolf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2012, 07:25 PM
  7. Remove "TRUE" "FALSE" words from a linked checkbox
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2008, 03:26 AM

Tags for this Thread

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