Results 1 to 5 of 5

search find replace substutute

Threaded View

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    search find replace substutute

    Hi guys,

    If anyone can suggest a better thread tittle please let me know.

    I have attached a sample showing the desired result which will make this easier to follow.

    In cell B2 there is a hyperlink which I have copied and pasted, the url pertains to a particular web page for the value in cell A2.

    I would like a formula to save me time from going to each web page from the values listed in col A and copying and pasting the URL.

    Therefore, in B3 I would like a formula which copies everything in the URL above (B2) from the first h until the first = sign as below:-

    http://www.caravanclub.co.uk/Caravan...ult.aspx?site=

    and then inserts the value in col b (and this is where i am struggling as, there needs to be + signs between the words, For eg B3 should be inserted as

    Blackmore +Caravan+Club+Site

    and then the last part of the url which in the case above is (and wil always be &arrivalDate=16/09/2011&departureDate=19/09/2011

    So, as an eg B3 should say

    http://www.caravanclub.co.uk/Caravan...site=Blackmore +Caravan+ Club+ Site&arrivalDate=16/09/2011&departureDate=19/09/2011

    My way would be to create 3 helper cols and use the len function for the two parts of the hyperlink and the third cell adding the contents of col A but inserting a + in the blanks and THEN in B joining the lot together.

    But this seems a bit long winded - can anyone suggest something better?

    Thanks for looking
    Attached Files Attached Files
    Last edited by Blake 7; 09-18-2011 at 09:47 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

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