+ Reply to Thread
Results 1 to 3 of 3

Converting a CUSTOM M/D/YYYY H:MM Cell Into Time Format

  1. #1
    Registered User
    Join Date
    02-20-2017
    Location
    Maine
    MS-Off Ver
    excel 10
    Posts
    22

    Converting a CUSTOM M/D/YYYY H:MM Cell Into Time Format

    Moderators: Please forgive me if I posted this query in the wrong place. I am unsure if it belongs under the Excel Forum as it deals with formatting cells or the Excel Formulas & Functions as it is needed for a countifs statement. Please forgive me in advance if I have posted this in the wrong location and please relocate it to the correct place. In addition, I apologize if this has been posted before. I have searched the forum and google for many hours before resorting to post on this forum. If it has been posted before, please point me in the right direction.

    I need to set up a countifs statement for a column of numbers that fall between a set of dates (i.e. 1/1/2017 – 1/7/2017) and a range of time (i.e. 1600-1659).

    I can do this if the cells are inputted as time only. However, the data has been imported from another software package and the cells are formatted in the “custom m/d/yyyy h:mm” format. I copied and pasted the column into another column and formatted it as time (13:30) This did not work as well as I imagine the source formatting did not changed.

    Is there a way to convert a cell that is formatted as custom m/d/yyyy h:mm into just time (i.e. 13:30)?

    There is a lot of data and I shudder at the thought of having to manually enter in this data.

    I know if I do =INT(A2) will convert to date. Is there something similar for time? I am in hopes someone in the forum can assist.

    Any and all assistance is greatly appreciated,

    Lance
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Converting a CUSTOM M/D/YYYY H:MM Cell Into Time Format

    Following formula will extract time only.

    =MOD(A2,1)

  3. #3
    Registered User
    Join Date
    02-20-2017
    Location
    Maine
    MS-Off Ver
    excel 10
    Posts
    22

    Re: Converting a CUSTOM M/D/YYYY H:MM Cell Into Time Format

    That worked! Thank you!

+ 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. [SOLVED] How to apply dd/mm/yyyy hh:mm custom format in VBA
    By Tiger20 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2015, 04:22 AM
  2. Help require to change a year format to custom yyyy-yyyy format
    By mso3 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-23-2015, 01:04 AM
  3. Converting a format into dd/mm/yyyy hh:mm
    By wetbean in forum Excel General
    Replies: 1
    Last Post: 04-02-2012, 07:37 AM
  4. Converting date from various forms to mm/dd/yyyy format
    By Sud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 07:38 PM
  5. Converting Six Digit Number to MM/YYYY Date Format
    By bschmeec in forum Excel General
    Replies: 1
    Last Post: 12-22-2011, 06:55 PM
  6. Problems converting date from d/m/yyyy to mmmm format
    By dcgrove in forum Excel General
    Replies: 6
    Last Post: 07-22-2009, 01:25 PM
  7. Converting DD/MM/YYYY format into text MMYYYY
    By giantwolf in forum Excel General
    Replies: 3
    Last Post: 08-03-2006, 11:00 AM

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