+ Reply to Thread
Results 1 to 5 of 5

find and replace to not replace characters found as wildcards

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Provo, Utah
    MS-Off Ver
    Excel 2010
    Posts
    6

    find and replace to not replace characters found as wildcards

    Hey all,

    I recently became owner of a spreadsheet with some issues, and I am trying to make it useful. Each row has a URL of a blog post, and I want to extract the date from it (which is present in each URL) while getting rid of the rest of the URL. I was able to get rid of everything up to the year (which comes first), but then the URL continues, for example, 2013/05/16/the-rest-of-the-url/ and I would like to just have 2013/05/16 remain.

    I am trying to use find and replace with the find box reading 2013/??/??/*/ and replacing it with 2013/??/?? which effectively erases everything else in the url, but leaves ?? instead of the numbers. Is there any way to have it so that it keeps whatever was in the original box? Or is there a better way to go about doing this?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: find and replace to not replace characters found as wildcards

    Why fight with Search & Replace?

    All you want are the first ten characters in the cell,
    Open a new column before the cells with the Date/Url string.
    and use LEFT() to grab them.

    So if your Date/Url string is in column B and enter the formula:

    =LEFT(B1,10)

    Now you have your Date in it's own column and you can delete the old column.
    Last edited by xenixman; 07-02-2013 at 06:51 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: find and replace to not replace characters found as wildcards

    Ummm... upon deleting the old column, the new column will disappear. He needs to copy the results of the formula and paste-values before deleting the old column.

  4. #4
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: find and replace to not replace characters found as wildcards

    jhren,
    You are of course correct, a Copy / Paste / Values would be required if he chooses to delete the column.
    I should have been more specific.

    Thanks for the reminder.

  5. #5
    Registered User
    Join Date
    05-01-2013
    Location
    Provo, Utah
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: find and replace to not replace characters found as wildcards

    Thank you for your answers. That definitely did the trick, and I am glad to avoid dealing with find and replace.

+ 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