+ Reply to Thread
Results 1 to 5 of 5

Counting Days until Cell contains value

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    Delavan, WI
    MS-Off Ver
    Excel
    Posts
    23

    Counting Days until Cell contains value

    I am looking to have the columns labeled "Days until Safety Complete" and "Days until Detail Complete" to count the days from the "Date" column until the "Safety" or "Detail" column contain anything (or no longer blank).... Anyone know how to do this?

    Can email file.... Would not let me attach for some reason

  2. #2
    Registered User
    Join Date
    12-12-2011
    Location
    Delavan, WI
    MS-Off Ver
    Excel
    Posts
    23

    Re: Counting Days until Cell contains value

    should be attached now
    Attached Files Attached Files

  3. #3
    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,193

    Re: Counting Days until Cell contains value

    I understand correctly, you want to "record" the date the "Safety" or "Detail" column was completed i.e. something entered in either of these columns, and subtract the data in column A.

    So if H2 was entered on 14th November, J2 will contain 3 (14th - 11th)

    To this will require VBA (Worksheet Event)
    Last edited by JohnTopley; 12-04-2016 at 08:38 AM.

  4. #4
    Registered User
    Join Date
    12-12-2011
    Location
    Delavan, WI
    MS-Off Ver
    Excel
    Posts
    23
    Quote Originally Posted by JohnTopley View Post
    I understand correctly, you want to "record" the date the "Safety" or "Detail" column was completed i.e. something entered in either of these columns, and subtract the data in column A.

    So if H2 was entered on 14th November, J2 will contain 3 (14th - 11th)

    To this will require VBA (Worksheet Event)
    Yes that is exactly what I am looking for. We are wanting to be able to measure the time it takes for them to be completed and the Column H indicates it being completed by entering the technicians initials

  5. #5
    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,193

    Re: Counting Days until Cell contains value

    Please Login or Register  to view this content.
    Right click on "Safety Details" tab==> view code ==> copy/paste code.

    Data entered in H or I will add elapsed days in J and K
    Attached Files Attached Files

+ 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. Replies: 15
    Last Post: 06-17-2016, 01:59 AM
  2. [SOLVED] How to find Sum of # of days w/o counting overlapping days twice
    By lanksout in forum Excel General
    Replies: 18
    Last Post: 08-11-2015, 02:15 AM
  3. How to stop counting days once a selection is made in another cell
    By imartt in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-25-2015, 05:05 AM
  4. Counting instances in one cell range for days of week in another range
    By NGothIda in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2014, 12:11 PM
  5. [SOLVED] Excel Formula for counting days (cell contains text as well which will need to be excluded
    By Carlos_Sydney in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2013, 01:31 AM
  6. Stop counting days if cell X is empty
    By Knawl in forum Excel General
    Replies: 2
    Last Post: 02-05-2010, 09:13 AM
  7. Replies: 9
    Last Post: 09-03-2007, 08:26 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