+ Reply to Thread
Results 1 to 2 of 2

help! Date formula to Return blank if cell is empty

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    paradise
    MS-Off Ver
    Excel 2007
    Posts
    17

    help! Date formula to Return blank if cell is empty

    Hello everyone - I have a simple formula that is counting the days when a date is entered in a cell however how do I have the cell blank when no date is in the cell?*right now I have a bunch of numbers (41646 41646) for example all the way down.I know I have to add a " " somewhere but dont know where!! please help!!*my formula is below:

    =DATEDIF(M4,TODAY(),"d")

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,129

    Re: help! Date formula to Return blank if cell is empty

    welcome to the forum, marquint. you could use:
    =if(M4="","",DATEDIF(M4,TODAY(),"d"))

    or just:
    =if(M4="","",TODAY()-M4)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] If formula, if two cells are blank, return blank, if one has a date, subtract todays date
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2014, 12:47 PM
  2. Date formula to Return blank if cell is empty
    By Ctaxes in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-07-2014, 11:28 PM
  3. If statement to return blank if cell D1 is empty...
    By bendixboogie in forum Excel General
    Replies: 8
    Last Post: 11-11-2008, 05:00 PM
  4. Return an empty or blank cell value?
    By Troymello in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2006, 01:45 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