+ Reply to Thread
Results 1 to 3 of 3

Erasing a few charachters from many different cells

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Erasing a few charachters from many different cells

    Hello,

    I am trying to write a loop that will recognize a date (as opposed to a word) and will then go into the cell and erase the last few charachters.

    The problem I am trying to solve is that I am getting a bad data feed. I only care about the month and year that something takes place, however, when I export the data from the vendor into Excel, October 2012 comes out as 8/12/2012, April 2013 comes out as 4/13/2012 and Dec 2014 is 12/14/2012. In other words, I want to go into each of these cells (bot only if they are dates, some of the cells are text like "total"), erase "/2012" from each of them and then format each as a text so they are in mm/yy format.

    Any ideas?

    Thanks in advance for your help.

    Shannon

  2. #2
    Registered User
    Join Date
    08-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Erasing a few charachters from many different cells

    Oops. I meant that October 2012 would be 10/12/2012

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Erasing a few charachters from many different cells

    Hi Shannon,

    Why not just place a custom format on the column?
    HTH
    Regards, Jeff

+ Reply to Thread

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