+ Reply to Thread
Results 1 to 4 of 4

How to not include blank dates help please!

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    20

    How to not include blank dates help please!

    Hi all
    I suspect this is a simple one but I have Friday afternoon brain....
    I have a list of dates and need to calculate a duration, however I want it to return nothing if one of the dates is blank, how can I do this? Example attached...thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to not include blank dates help please!

    Try this...

    Entered in E2 and copied down:

    =IF(COUNT(C2:D2)=0,"",IF(A2="apple",C2-B2,D2-B2))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: How to not include blank dates help please!

    Thank you, that works perfectly.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to not include blank dates help please!

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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