+ Reply to Thread
Results 1 to 12 of 12

Stop counting days when date entered in another cell

  1. #1
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Stop counting days when date entered in another cell

    Hi

    I am having a mind blank - and cant figure out how to fix the problem.

    in

    i am populating a document register when tracks date received, when sent for review, date due, how many dates left of review and date returned.

    G1 has date received - free text
    H1 has date sent for review - free text
    I1 is due date - formula =IFBLANK(G1),"",=G1+14)
    J1 is days remaining - formula =IF(I1="","",I1-TODAY())
    K1 is returned date - free text

    i want J1 to stop calculating when K1 has date entered

    what do i need to do?

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Stop counting days when date entered in another cell

    Dont know a function named IFBLANK....
    why dont you just upload the sample file instead of letting others do that for you?

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Stop counting days when date entered in another cell

    Welcome to the Forum lucecal !

    We need just a little more information to determine if this can be done with formulas, or if it requires VBA.

    First, you refer to "free text." What do you mean by that? A cell containing a date should be a date value, not text.

    When K1 is entered, does the user enter today's date, or can it be any date? If the user just enters today's date into K1 then your J1 formula can be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, if K1 can contain any date at all, then you need to use VBA to fix the value in J1. This is not especially difficult but it will require converting your file to macro-enabled.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Stop counting days when date entered in another cell

    Quote Originally Posted by lucecal View Post
    I1 is due date - formula =IFBLANK(G1),"",=G1+14)
    Do you mean

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    Thank you for your quick reply.

    Apologies when i said "free text" i just meant that the user can enter any value.

    So to answer your question - K1 can be any date as it will be the date that the information, so it could be today, tomorrow or in 3 weeks time.

    Hope that makes sense, i can add a sample if needed?

  6. #6
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    belinda when i searched this forum i come across so many of your responses and it seems you come across very rude on nearly every post

  7. #7
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    yes - again sorry.

    I am working between 3 different laptops and in between meetings, apologies again a type on my part.

  8. #8
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    G1 has date received - date entered (can be any date)
    H1 has date sent for review - date entered (can be any date)
    I1 is due date - formula =IF(ISBLANK(G1),"",=G1+14)
    J1 is days remaining - formula =IF(I1="","",I1-TODAY())
    K1 is returned date - date entered (can be any date)

  9. #9
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    Quote Originally Posted by 6StringJazzer View Post
    Do you mean

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ive reposted at the bottom of the post - if you want me to add a sample workbook let me know.

  10. #10
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Stop counting days when date entered in another cell

    Quote Originally Posted by lucecal View Post
    belinda when i searched this forum i come across so many of your responses and it seems you come across very rude on nearly every post
    You're welcome to send me where I was rude, sorry if you were offended but I do believe that a sample file is mandatory to resolve your problem faster.

  11. #11
    Registered User
    Join Date
    03-03-2021
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Stop counting days when date entered in another cell

    Quote Originally Posted by 6StringJazzer View Post
    Welcome to the Forum lucecal !

    We need just a little more information to determine if this can be done with formulas, or if it requires VBA.

    First, you refer to "free text." What do you mean by that? A cell containing a date should be a date value, not text.

    When K1 is entered, does the user enter today's date, or can it be any date? If the user just enters today's date into K1 then your J1 formula can be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, if K1 can contain any date at all, then you need to use VBA to fix the value in J1. This is not especially difficult but it will require converting your file to macro-enabled.

    thank you for responding - apologies I didnt attach a sample workbook. I am working with very sensitive data so thought i would see if i could get a resolution without transferring my information to a sample first.

    Free text i meant as in eneter any date and yes K1 can be any date,

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Stop counting days when date entered in another cell

    VBA is required. Save your file as macro-enabled (.xlsm). Edit the module for the worksheet in question to have this code:

    Please Login or Register  to view this content.
    When K1 receives any entry, J1 will be converted to a value. There is no error checking here to ensure that K1 has a date.

+ 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 Counting 'Days' when data is entered in a new field
    By BURN1E in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-09-2020, 12:30 PM
  2. Stop Counting 'Days' when data is entered in a new field
    By BURN1E in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2020, 01:24 AM
  3. [SOLVED] Count work days with formula but stop once a date is entered
    By wjeans in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2020, 10:34 AM
  4. How can I make a counting column stop once a date received date is entered.
    By ryanslau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2019, 02:54 PM
  5. Stop counting days if date entered into another cell
    By rmase in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2019, 01:50 AM
  6. 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
  7. Replies: 7
    Last Post: 12-08-2016, 12:25 PM

Tags for this Thread

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