+ Reply to Thread
Results 1 to 38 of 38

Stop counting today

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Stop counting today

    For example:
    A1 =today()
    B1 Incident Date mm//dd/yyyy
    B2 Number of Days since Incident Date
    B2 30 (Days Past) =if(B1>A1+30,"X","")
    B3 60 (Days Past) =if(B1>A1+60,"X","")
    B4 Status "Current", "Pending", "Closed"

    I realize if I copy paste special value, but how would I get the counting to stop the counting based on the Status ("Current" etc.)

    Thanks,
    Jim

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Welcome to the forum!

    I have read your post three times and am struggling to visualise what you want. Can you give a specific example about how you want something to stop counting? Attach a sample workbook, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Stop counting in cell B2- Number of Days since Incident Date

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Stop counting when??? What is the criterion?

    Maybe this:

    =IF(A1-B1>60,60,A1-B1)

    or:

    =MIN(60,A1-B1)
    Last edited by AliGW; 10-29-2017 at 06:39 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    I think I need VBA. Originally posted in that forum.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Your thread has not been moved - why do you think you need VBA?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Maybe this in A1?

    =IF(TODAY()-B1>60,B1+60,TODAY())

  9. #9
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    I want to do an automated Copy/PasteSpecialValue

  10. #10
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    But today() will keep updating. I want it to stop when the incident is closed.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Shall I move your thread?

    Your tone is very demanding - you do realise we are all volunteers here offering you support in our free time, don't you?

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    But today() will keep updating. I want it to stop when the incident is closed.
    It won't if you tell it not to. See post #8.

  13. #13
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    I sincerely apologize. Really. I didn't realize it. Very sorry. Will try to do better.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Have a look at this:

    Excel 2016 (Windows) 32 bit
    A
    B
    1
    28/10/2017
    29/08/2017
    2
    61
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    A
    1
    =MIN(TODAY(),B1+60)
    2
    =TODAY()-B1
    Sheet: Sheet1
    Last edited by AliGW; 10-29-2017 at 07:33 AM.

  15. #15
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    I see what you are saying. I guess I would like the today() to be a value so it will automatically stop the counting.

    p.s. I've posted with you in the past. You helped me out with a index/match that I just couldn't get. I admire your knowledge and would love to know excel better.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    So do you want to stop the counting, or freeze A1 after 60 days, or both?

    I help a lot of people - I am sorry that I didn't 'recognise' you.

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    These two formulae will both stop (freeze their value) once 60 days are reached:

    Excel 2016 (Windows) 32 bit
    A
    1
    =MIN(TODAY(),B1+60)
    2
    =MIN(60,TODAY()-B1)
    Sheet: Sheet1


    Excel 2016 (Windows) 32 bit
    A
    B
    1
    28/10/2017
    29/08/2017
    2
    60
    Sheet: Sheet1

  18. #18
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    If you enter the DATE when an incident is closed into cell B5
    - then put this formula in cell B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    counting stops when incident closed
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  19. #19
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    It's okay...I realize you do help many people. I am the guru amongst my excel newbie friends.

    But I really would like to know what date it was closed. And the days passed since opened. It could be 60, could be 40 could be 100.

  20. #20
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    hmmm...that is an interesting min function use. I thought it only referred to ranges.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    The problem here actually is the missing information. We don't know what the criteria for this are:

    B4 Status "Current", "Pending", "Closed"
    Jym - I don't know who you are. You seem to have only today's 7 posts associated with this account.

  22. #22
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    But I really would like to know what date it was closed
    - you must input that date
    - Excel will not remember when you changed the value in status to "Closed"
    - see post#18
    Last edited by kev_; 10-29-2017 at 07:59 AM.

  23. #23
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Got it. Could you please help with how that min function is used the way you did it?

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    The other thing you could do is have a checkbox associated with a cell that is referenced by A1 - once it's ticked, A1 stops increasing.

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Got it. Could you please help with how that min function is used the way you did it?
    Whom are you addressing, Jym - me or Kev?

  26. #26
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Kev I guess...sorry

  27. #27
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Actually thought about a checkbox. Would like that because I am writing this for someone else..

  28. #28
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Kev. Could you explain how you used that min function? I thought it only worked on ranges.

  29. #29
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Just realised I need to go somewhere - hopefully Kev will help you conclude this - sorry!
    Last edited by AliGW; 10-29-2017 at 08:03 AM.

  30. #30
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Stop counting today

    Quote Originally Posted by Jym396 View Post
    Could you explain how you used that min function? I thought it only worked on ranges.
    =MIN(value1,value2,etc.)

    The values can be single cell references, values or a range of cells.

  31. #31
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Quite alright. Be careful wherever you are going And...thanks!

  32. #32
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    I have been watching this thread and am also confused by your explanations

    Have a look at the attached workbook
    - if that is not what you want then please attach a workbook with the values you do want with an explanation of how to derive them

    To attach a workbook
    - click on GoAdvanced
    - look below for ManageAttachments
    - follow screen instructions
    Attached Files Attached Files
    Last edited by kev_; 10-29-2017 at 08:15 AM.

  33. #33
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    Could you explain how you used that min function? I thought it only worked on ranges.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can also use =MIN to select the minimum from a list of values separated by comma
    - the answer to the above is obviously 1
    - enter the above formula in a cell and change the values and see what happens

    Also works with =MAX, =AVERAGE, =SUM

  34. #34
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Very helpful Kev...thank you so very much.

    Jim

  35. #35
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    Please close this thread. I don't know how.

    Thank you both so much!

    Jim

  36. #36
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    Did you look at post 32 - is it what you want?

  37. #37
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Stop counting today

    Please close this thread. I don't know how.
    Go to thread tools at top of thread and mark thread as SOLVED

  38. #38
    Registered User
    Join Date
    11-07-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Stop counting today

    The download really helped!

+ 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] Stop =today() if user has changed it
    By ramzter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2015, 07:30 PM
  2. [SOLVED] Need a =(Cell)-TODAY() Formula to stop counting once the Date in (Cell) occurs
    By Dutch01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2015, 03:23 PM
  3. Stop Counting After Today
    By enid09 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2014, 11:01 AM
  4. How to stop =Today() from update after EOM
    By LolaLee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2014, 12:48 AM
  5. [SOLVED] Counting Tasks With Due Dates between TODAY and TODAY+7
    By Erik_with_a_K in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2013, 09:00 AM
  6. Stop today function calculating
    By excelstacy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-22-2013, 05:39 PM
  7. Replies: 2
    Last Post: 01-04-2012, 10:22 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