+ Reply to Thread
Results 1 to 2 of 2

Date time stamp issue

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    PERTH
    MS-Off Ver
    Excel 2007
    Posts
    39

    Date time stamp issue

    Hi Guys

    I have a spreadsheet where the data is copied and pasted from an email by my colleagues One columns data has date and time shown as 01-APR-12 16:51 is there a way I can remove the date portion without adding a separate column, all my colleagues should have to do is copy and paste.

    I also have another column called 'Standby' where I want to use formula to show 'Yes' or 'No' if the time portion is after 16:00hrs and before 07:00hrs hence the reason I need to remove the date portion.

    Please can someone help? example spreadsheet available if required.

    Thanks
    Last edited by KELLIS; 07-30-2012 at 07:15 PM.

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

    Re: Date time stamp issue

    Is the date and time formatted as a number? To check this, let's say the date/time is in G5, in a blank cell, type = ISNUMBER(G5) and see if you get a true or false.

    If the date and time is a number, you can modify your formula so that the date is removed at that point.

    =IF(OR(MOD(G5,1)<= "7:00"+0, MOD(G5,1)>= "16:00"+0),"Yes", "No")
    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

+ 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