+ Reply to Thread
Results 1 to 3 of 3

Automatically stop counting date difference in datedif function

  1. #1
    Registered User
    Join Date
    09-13-2018
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2013
    Posts
    1

    Automatically stop counting date difference in datedif function

    is it possible if i write at J5=clear, I5 will stop updating difference of dates?Capture.PNG

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Automatically stop counting date difference in datedif function

    welcome to the forum. so what are you hoping to see in cell I5 instead. try to upload a sample excel file showing that next time. if you wish to show a blank, maybe:
    =IF(J5="clear","",DATEDIF(H5,TODAY(),"d"))

    but since you are looking for difference in days, there's a simpler way instead of DATEDIF. simply:
    =IF(J5="clear","",TODAY()-H5)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Automatically stop counting date difference in datedif function

    You can do it with an intentional circular reference.

    In I5

    =IF(J5="clear",I5,TODAY()-H5)

    Remember to 'Enable iterative calculation' before entering the formula. Also, you need to enter the formula before entering 'Clear' into the status column.

    If you don't set it up in the correct order then it will not work.

+ 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. Stop date counting when data entered in other cell.
    By carlins in forum Excel General
    Replies: 2
    Last Post: 11-02-2017, 04:54 PM
  2. stop a countdown counting when date reached?
    By katashaaa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2015, 11:17 AM
  3. [SOLVED] Stop Counting Networkdays when a completion date is entered
    By veemarie in forum Excel General
    Replies: 6
    Last Post: 05-05-2015, 02:23 PM
  4. [SOLVED] Stop Counting Function with NETWORKDAYS plus Conditional Formatting?
    By cmkarnes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2015, 10:29 AM
  5. DATEDIF function to get years difference between 2 dates
    By DTYS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-11-2015, 11:45 PM
  6. Formula to stop the counting based on date
    By joseph_yap22 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 08-20-2013, 07:58 AM
  7. IF function yet want to stop counting when another cell has data entered.
    By Stevie-B in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2008, 09:28 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