+ Reply to Thread
Results 1 to 3 of 3

Help with date formula

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    17

    Help with date formula

    I an using the following date formula which works fine. =DATEDIF(F5,TODAY(),"y")

    It will return a persons age.

    My problem is how do I get it to show nothing if F5 is blank?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help with date formula

    You can add an IF function, e.g.

    =IF(F5="","",DATEDIF(F5,TODAY(),"y"))
    Audere est facere

  3. #3
    Registered User
    Join Date
    01-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    17

    Re: Help with date formula

    Worked perfectly. Thank you

+ 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] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  2. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  3. Replies: 2
    Last Post: 11-03-2014, 10:29 AM
  4. [SOLVED] Formula assistance needed to sum data based on anniversary date and month date
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 11:18 PM
  5. Replies: 1
    Last Post: 04-18-2012, 05:49 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