+ Reply to Thread
Results 1 to 7 of 7

Adding "http://" to the front of a column of web URLs that start with www

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Question Adding "http://" to the front of a column of web URLs that start with www

    Hi guys and girls.

    I have a database that has a column of website address / URL's and they are all formatted like www.somedomain.com

    I need the to all be formatted http://www.somedomain.com

    So i am wondering if there is a simple easy and fast way to add http:// to the beginning of every entry in the URL column rather than manually having to enter the http://?

    Thank you very much in advance for any advise or guidance you can provide me.

    Have a great day

    Scott
    Australia
    Last edited by scottlin; 08-16-2012 at 11:54 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding "http://" to the front of a column of web URLs that start with www

    Select the range, CNTRL H to bring up the find and replace box
    Find www
    Replace with http://www
    Replace all
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding "http://" to the front of a column of web URLs that start with www

    Quote Originally Posted by ChemistB View Post
    Select the range, CNTRL H to bring up the find and replace box
    Find www
    Replace with http://www
    Replace all
    Does that work for you?
    That was very simple wasn't it

    Thank you thank you thank you! That made complete sense and it worked.

    Now I'm very very happy with that but if you want to go for double or nothing

    Whilst that worked perfectly and brilliantly it exposed something i didn't realise....25% of the URL's don't have the www part and are just in the form of somedomain.com so i still need to add the http:// part at the front of about 25% of 182,000 URL's lol.

    Not sure this is as easy but I'm totally prepared to be shown I'm very wrong and really hope you can.

    Thank you ChemistB for that....an answer with in minutes and a simple solution, this place is awesome already and i appreciate your help very much

    Cheers mate!

    ---------- Post added at 01:29 AM ---------- Previous post was at 01:28 AM ----------

    I wont mark as solved just yet but once this part is answered or shown to be not possible I most certainly will.

    Thanks

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding "http://" to the front of a column of web URLs that start with www

    Let's say your data is in Column A starting in A1
    Assuming you've already done the part with the Http
    In B1
    =IF(LEFT(A1,4)="http",A1, "http://www."&A1)
    or if you want the http without the www
    =IF(LEFT(A1,4)="http",A1, "http://"&A1)
    dragged/copied down.
    Then Copy Column B and Paste Special> Values into column A. Delete B
    Does that work for you?

    PS. Thanks for the Rep

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding "http://" to the front of a column of web URLs that start with www

    I'm now showing my total n00bness....I haven't been able to get that to work but not coz it doesn't but because i don't think i understand formulas and how they work or are entered properly. But I'm sure i can give this to a friend who will get it straight away which is what i will do tomorrow (2 am here) and then i will report back.

    Thank you again for your help (I'm not going to ask more and waste your time when i don't even know what is clearly the basics) i really appreciate it and re the rep, the least i can do!

    Cheers!
    Last edited by Cutter; 08-16-2012 at 08:43 PM. Reason: Removed whole post quote

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding "http://" to the front of a column of web URLs that start with www

    I'm not sure if Australia uses commas or semicolons between arguments. In the USA, it's commas so you'd need to adjust that. Let me know what's not working and I can talk you through it.

  7. #7
    Registered User
    Join Date
    08-15-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding "http://" to the front of a column of web URLs that start with www

    ChemistB, thank you so much! I got my friend to show me how to put the formula in (i thought i was doing the same thing last night but clearly not) and it worked perfectly!

    Very impressed! Thank you again, you saved me a lota work mate!

    Thanks,

    Scott

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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