+ Reply to Thread
Results 1 to 4 of 4

Calculate number of days between two days

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    893

    Question Calculate number of days between two days

    Hello,

    Can any one tell me what is the problem in my formula. I am trying to find the no. of days in between 2 dates. But in some cells it is giving error #NUM!

    I am using the formula =DATEDIF(NOW(),B2,"d") or =IF(ISNUMBER(B2),DATEDIF(B2,NOW(),"d"),"").

    Sample file is attached for your reference.
    Last edited by hecgroups; 03-03-2012 at 11:28 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,218

    Re: Calculate number of days between two days

    Try this
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    add
    Please Login or Register  to view this content.
    to the end of either formula to omit Column D
    Last edited by Marcol; 03-03-2012 at 11:26 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,647

    Re: Calculate number of days between two days

    =today()-B2



  4. #4
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    893

    Re: Calculate number of days between two days

    It works.So, simple thanks for your valuable. Without excelform i am nothing. Topic close and reputation added.

+ 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