+ Reply to Thread
Results 1 to 4 of 4

IF Function with Date Value

  1. #1
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    IF Function with Date Value

    Hi,

    Help needed! I have a safety performance sheet in which I need to calculate the number of days without incident from an initial date. If I do not have an incident on Criterion or type of incident, then I will display the number of days since the start of the project in column C [ =TODAY()-DATEVALUE("2022/9/1") ].

    Now if I have an incident, then I will enter the date of that incident in column B in order to count from that date, rather than from the initial date that is inside the formula. The formula for this should look like this: =IF(ISNUMBER(B2);TODAY()-B2;ISBLANK(B2);TODAY()-DATEVALUE("2022/9/1")).

    Unfortunately, I have tried several ways of this line of arguments, and nothing is working.

    Could you please help !!!
    Attached Files Attached Files
    Last edited by Joe.Mintsa; 01-03-2023 at 09:31 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: IF Function with Date Value

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

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: IF Function with Date Value

    maybe like this... in C2 =DATEDIF(B2,TODAY(),"d")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    06-23-2023
    Location
    England
    MS-Off Ver
    Microsoft office professional plus 2016
    Posts
    1

    Re: IF Function with Date Value

    Hi There is am having a problem reporting days

    I have a cell with drop down in G there is a few words but the key word is Near Miss when it sees near miss i want it to look at date added in column C pulling this information and counting day from accident to today

    Attachment 834186Attachment 834187
    Last edited by GaryMcGill77; 06-23-2023 at 08:25 AM. Reason: spelling

+ 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] in the function's cell the date is formatted in the 1900" date system
    By MaartenRo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-14-2021, 05:01 AM
  2. [SOLVED] date function or text function recommended? to display mmm-yy when year is cell A1
    By BigPapaMurf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2020, 12:14 AM
  3. date function not working.....if date blank says its a valid date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2018, 09:25 AM
  4. [SOLVED] Function to randomly output date/time between to fixed date/times
    By 160998 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2018, 02:49 AM
  5. Replies: 0
    Last Post: 11-16-2015, 08:57 AM
  6. [SOLVED] Function/formula to compare and insert todays date or yesterdays date
    By TC922 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 05:28 AM
  7. Replies: 0
    Last Post: 05-30-2013, 07:50 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