+ Reply to Thread
Results 1 to 2 of 2

Need a formula for "Days Open" with a Turn In Date and Date Closed

  1. #1
    Registered User
    Join Date
    07-08-2018
    Location
    California, America
    MS-Off Ver
    2013
    Posts
    4

    Need a formula for "Days Open" with a Turn In Date and Date Closed

    I have a spreadsheet in which I track delinquent reports. In the first column is the date that the asset was turned in. I'd like to throw in a "days open" column because at certain intervals, we need to send follow up emails. When the entry is closed, I'd like for the column to stop counting. It can either return a 0 in the days open column, or it can return the number of days the asset was open. Either way would work as I already have it set up to automatically turn green once the entry is closed.

    I'm working on Excel 2013.

    Columns are set up like

    TIN DATE, STATUS, TIN BY, NSN, TIN DOC, SN, RC, UNSERV, LOC, DAYS OPEN, CC, SHIP TO, SHP DOC, CLOSED DATE

    Any help would be greatly appreciated.

    Update:
    I added two columns. One column was closed date-TIN Date, second column was TODAY()-TIN Date. Then I put =IF(B4="Closed", K4,L4)

    B column= Status
    K column= closed-tin
    L column= today-tin

    Then I hid the K and L columns

    If anyone has a cleaner way, I'd love to know.
    Last edited by jinthesensei; 07-08-2018 at 11:29 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Need a formula for "Days Open" with a Turn In Date and Date Closed

    Hi, welcome to the forum

    What you need to understand about dates and times in excel is…

    a date is just a number representing the number of days passed since 1/1/900...and then formatted in a way that we recognize as a date. So, for instance, today (Sun 08 Jul 2018) is actually 43289

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    With that said, if your dates are REAL dates, and not text looking like dates, you could just add something like...
    =if(cell-with-closed="closed,"Closed", today()-"date-started")
    You can replace the "closed" with whatever you want - "" will give you a cell that appears empty

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Pass the last business days date through odbc to "select where date >= the date"
    By MostHated in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2015, 04:15 PM
  2. [SOLVED] DATE: Calculating date after "x" amount of days
    By myoung5149 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2014, 02:30 PM
  3. [SOLVED] Number of Days between date but if cell has "na" go to next date
    By Bikeman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2012, 07:16 PM
  4. Date Range and Formula identifing "X" amount of days ahead
    By dagindi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2010, 08:42 AM
  5. Update to closed post "Auto Insert System Date & Time "
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2009, 08:01 AM
  6. Need a formula to place todays date in cell when other cell ="closed"
    By mrgillus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2009, 12:28 PM
  7. [SOLVED] conditional formula to show "open" or "closed"
    By SBS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2006, 09:50 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