+ Reply to Thread
Results 1 to 7 of 7

Excel Find and Replace for Dates

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Illinois
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    86

    Excel Find and Replace for Dates

    Hello,
    I included a dummy wkbk, but I am trying to find a way for Excel's find and replace feature to change some cells formatted as dates from one year to the next year without having to manually re-enter the dates. I can't use the dragging method after putting in a formula because there is text after a certain number of cells that throws the formula off. I was able to use the find and replace feature to change the text dates but not the formatted formula dates. See workbook for better understanding. Thnx.

    HP RodNuclear
    Attached Files Attached Files
    Last edited by HP RodNuclear; 12-20-2010 at 11:08 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,241

    Re: Excel Find and Replace for Dates

    Replace
    Find what: /2010
    Replace with: /2011

    Replace All

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel Find and Replace for Dates

    you could just try adding 365 to them but thats not always the best thing(and leap years need to be considered), depends what you need to do just put 365 in a cell copy/paste special (over values in col A) "add"
    or what TMshucks said lol
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Excel Find and Replace for Dates

    Replace method is the easiest.

    However this should work in column B
    In B1
    Please Login or Register  to view this content.
    Drag/Fill Down

    This should add one year to dates, and your text strings.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,241

    Re: Excel Find and Replace for Dates

    @Martin: "or what TMshucks said lol" ???? ;-)

    Works for me (and in the test workbook)

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel Find and Replace for Dates

    i added that as i was posting coz i thought it was the best solution and i couldnt see how i overlooked it!

  7. #7
    Registered User
    Join Date
    11-04-2010
    Location
    Illinois
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    86

    Re: Excel Find and Replace for Dates

    Thanks guys. I feel like an idiot lol.

+ 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