+ Reply to Thread
Results 1 to 7 of 7

finding and removing the time in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    09-07-2014
    Location
    Manila, Philippines
    MS-Off Ver
    2007
    Posts
    9

    finding and removing the time in a cell

    Hi, im working on a file that has alot of data and all i need to do is to find and remove the time which includes the AM/PM (attached file is an example). what i do is to use the find and use a condition *:*00*AM and *:*00*PM which brings me the cells and then remove the time manually without removing the words "Dropdate: 08/12/2014". I just wonder if there's a way to do this quicker, using replace or maybe a formula. the important thing is to leave the words Dropdate with the date.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: finding and removing the time in a cell

    maybe this...
    =IF(ISNUMBER(SEARCH("Dropdate",D4,1)),LEFT(D4,20),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-07-2014
    Location
    Manila, Philippines
    MS-Off Ver
    2007
    Posts
    9

    Re: finding and removing the time in a cell

    this formula works hands down, but if its possible something like how find/replace works so i can remove the time on its active cell. the LEFT function is perfect for this but i dont think you can use functions in the find/replace.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: finding and removing the time in a cell

    i dont think you can use functions in the find/replace.
    That is correct.

    Perhaps use my formula in a helper column, then when you are finished, copy/paste values over the original data and then delete the helper. Or, if this will be an on-going process, keep the helper and hide the column with the original data in?

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: finding and removing the time in a cell

    Try this.. Drag down..
    Formula: copy to clipboard
    =IF(ISERR(FIND("Dropdate",D4,1)),"",LEFT(D4,20))

    check the attached file..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: finding and removing the time in a cell

    I got the crack...
    Try find and replacing.. without Quotes..("")
    " ???????? AM"
    and
    " ???????? PM"
    with "" (Nothing..)
    it will do...
    Remember it starts form SPACE....
    Last edited by Vikas_Gautam; 09-07-2014 at 10:20 PM.

  7. #7
    Registered User
    Join Date
    09-07-2014
    Location
    Manila, Philippines
    MS-Off Ver
    2007
    Posts
    9

    Re: finding and removing the time in a cell

    Vikas_Gautam this one is what im looking for!!!! waaaahhhh!!!!!! thank you for taking time to check my file, thanks to FDibbins as well, YOU GUYS ARE THE BEST!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding and removing a duplicate
    By Kicassrt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2013, 12:12 AM
  2. finding time in cell O1 comming in between cells or not
    By kshitij_dch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2013, 12:10 PM
  3. Finding and removing price
    By dlamberth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2012, 01:18 PM
  4. Finding duplicates and not removing
    By sentinela in forum Excel General
    Replies: 1
    Last Post: 06-02-2009, 10:43 AM
  5. Removing time in cell
    By bigbadlee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2009, 05:07 PM

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