+ Reply to Thread
Results 1 to 7 of 7

Error with forumla

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    7

    Error with forumla

    Im getting an error when I use this formula and I have no idea why, appreciated if anyone can help me out.

    Im trying to calculate the duration between 2 dates and times

    A9 = 03/08/2021 15:21:00
    K9 = 03/08/2021 16:47:00

    Please Login or Register  to view this content.
    The result looks like this: 0 days h hrs 1 min

    This is the error I get but I cant seem to fix it
    2.png

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Error with forumla

    try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-23-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    7

    Re: Error with forumla

    Thanks for your response, I still get the same error

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Error with forumla

    Works fine for me:

    Result is 0 days 1 hrs 26 mins

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Error with forumla

    the issue may be incorrect formatting of the cells, try using a date format that includes the hours and minutes, not general or text.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Error with forumla

    Try changing the "," in JohnTopley's formula to ";".

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Error with forumla

    I just copied the formula given in the post and changed ":" to ",": no problem.

+ 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] R1C1 Forumla in VBA returning Application-defined error 1004
    By dsrt16 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-16-2021, 05:50 PM
  2. [SOLVED] Unable to find error in Countifs forumla
    By ghostdriver in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2020, 11:46 AM
  3. [SOLVED] Get rid of #value error in rank.eq forumla
    By slock92 in forum Excel General
    Replies: 3
    Last Post: 03-01-2017, 12:24 PM
  4. Forumla error - SumIf
    By SharpL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-10-2014, 09:40 AM
  5. [SOLVED] Error in DeSeasonalized Sales Forumla Array
    By jemmers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2014, 12:15 PM
  6. IF AND forumla is giving me a circular ref error
    By controlfreak in forum Excel General
    Replies: 8
    Last Post: 10-05-2012, 05:52 AM
  7. Inconsistent Forumla Error
    By dhbeisner in forum Excel General
    Replies: 1
    Last Post: 02-21-2008, 07:49 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