+ Reply to Thread
Results 1 to 7 of 7

Needing help with Simple TODAY formula and Blank cells

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Needing help with Simple TODAY formula and Blank cells

    Hi,

    I'd appreciate any help with this formula.

    Firstly, I have a spreadsheet with 4 headings from A1 – D1. (Name, Role, Actions, Date Submitted).

    I have added an additional column in E1 (after Date Submitted) which tracks how many days has passed since ‘Date Submitted’. Formula I have used is: =TODAY()-D2.

    The only problem with this formula is that if there is no date in the “Date Submitted” column, the formula comes back with “41458” under a number formatted cell, not date format.

    How can I make the formula return a blank cell if there is no date in the column but when dates are added later on it will still calculate the number of days?

    Thanks.

  2. #2
    Registered User
    Join Date
    07-09-2012
    Location
    India
    MS-Off Ver
    Excel 97/2003/2007/2010
    Posts
    67

    Re: Needing help with Simple TODAY formula and Blank cells

    Hi jackie11,

    try this =datedif(today(),d2,"d")

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

    Re: Needing help with Simple TODAY formula and Blank cells

    Hi and welcome to the forum

    Maybe something like this?

    =if(D2="","",TODAY()-D2)

    side note: If you only have a few (hundred?) of this formula it wont be a problem, but if you have 100 000 then it might be better to put the today() part in its own cell and then just reference it - today() is a volatile formula, which means it gets recalculated every time ANYTHING in the workbook changes. So if you have today() used tons and tons of times, it could slow your file down eventually
    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

  4. #4
    Registered User
    Join Date
    07-02-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Needing help with Simple TODAY formula and Blank cells

    Hi Sathiyamoorthy,
    It doesnt seem to work either - the formula you provided returns the formula "#NUM!"

  5. #5
    Registered User
    Join Date
    07-09-2012
    Location
    India
    MS-Off Ver
    Excel 97/2003/2007/2010
    Posts
    67

    Re: Needing help with Simple TODAY formula and Blank cells

    HI JACKIE11,

    SORRY

    TRY THIS try this =datedif(D2,TODAY(),"d")

  6. #6
    Registered User
    Join Date
    07-02-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Needing help with Simple TODAY formula and Blank cells

    Hi FDibbins,

    The formula you provided works perfectly and will be fine for this purpose. Thank You!!

    Next question (could be a little more tricky): What would be the best type of Chart to use, which would show the how many days are tracking (30 days, 60 days... etc) next to each Person and their Role.

    I would also like to have the ability to filter the chart data with the Actions column. The ‘Action’ column has information like shortlisted, interviewed and commenced.

    Unfortunately, charts are not my area of expertise.

    Thanks again everyone!

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Needing help with Simple TODAY formula and Blank cells

    Make a table (on another sheet) in which you will look up the values (30 - 60 - 90 - 120 - 150 days).

    After that you can use in a new column the VLookup function.

    After that you can use that information for your charts.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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