+ Reply to Thread
Results 1 to 4 of 4

Custom date formating

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Custom date formating

    Hi i am trying to find the time difference between two cells and present the date in a third cell. The data in the cells are in a non standard date/time and i need to create a special format i think. The cells look like this.

    fldcollected fldaccepted Type Time between being received by database and eccepted

    2013-11-06 15:59:29.100 2013-11-07 08:41:12.000 PSTN

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Custom date formating

    They are in an acceptable format, which is showing milliseconds. Standard arithmetic applies.

    You can coerce standard values into the format you're using with mm-dd-yyyy hh:mm:ss.000
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    01-06-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Custom date formating

    All i get in the output cell is ######################################

    The it guy at my company is stumped.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Custom date formating

    Then you are subtracting in the wrong direction. Negative dates don't exist.

    If you want to keep your formula, but prevent the error, simply use ABS(formula) which will give the absolute value of the answer.

    Or subtract in the other direction.

+ 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. Request Custom formating
    By raj1234 in forum Excel General
    Replies: 3
    Last Post: 11-20-2008, 11:07 AM
  2. Custom Cell formating
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2008, 09:18 AM
  3. custom formating
    By bob12 in forum Excel General
    Replies: 3
    Last Post: 01-26-2007, 01:04 PM
  4. custom formating text
    By Mart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2005, 09:05 AM
  5. [SOLVED] Custom formating won't work
    By Marty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2005, 12:06 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