1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

formula for date

Discussion in 'Business Applications' started by t long, Jun 25, 2004.

Thread Status:
Not open for further replies.
  1. t long

    t long Thread Starter

    Joined:
    Jan 19, 2004
    Messages:
    52
    I have a start date and end date cell (C5 and C6) I am using a +DATEDIF formula to calculate the number of days between two dates (E8) and the formula is working without any problems......

    How can I have exel show me a blank cell if the start and end date cells are empty instead of getting a #NUM!

    Any help would be greatly appreciated
    Thank you
    Tanya
     
  2. etaf

    etaf Moderator

    Joined:
    Oct 2, 2003
    Messages:
    65,203
    First Name:
    Wayne
    my first thought is
    try ISERROR in an if
     
  3. maxflia10

    maxflia10

    Joined:
    Feb 24, 2003
    Messages:
    331
    Try,

    =IF(COUNT(C5,C6)=2,DATEDIF(C5,C6,"D"),"")
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/242951

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice