+ Reply to Thread
Results 1 to 2 of 2

Counting days formula

  1. #1
    Registered User
    Join Date
    09-06-2005
    Posts
    26

    Counting days formula

    Here is the formula I use:

    =DATEDIF(B6,TODAY(),"D")

    to calculate # of days from date I entered.
    However when I left the cell blank, it gives it a value of 38607.
    How can I get it blank if I don't enter a date? It affect the whole spreadsheet.

    Thanks.

  2. #2
    Arvi Laanemets
    Guest

    Re: Counting days formula

    Hi

    =IF(B6="","",DATEDIF(B6,TODAY(),"D")
    or
    =IF(B6="","",TODAY()-B6)


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )



    "cardingtr" <cardingtr.1va76c_1126587931.1562@excelforum-nospam.com> wrote
    in message news:cardingtr.1va76c_1126587931.1562@excelforum-nospam.com...
    >
    > Here is the formula I use:
    >
    > =DATEDIF(B6,TODAY(),"D")
    >
    > to calculate # of days from date I entered.
    > However when I left the cell blank, it gives it a value of 38607.
    > How can I get it blank if I don't enter a date? It affect the whole
    > spreadsheet.
    >
    > Thanks.
    >
    >
    > --
    > cardingtr
    > ------------------------------------------------------------------------
    > cardingtr's Profile:
    > http://www.excelforum.com/member.php...o&userid=27027
    > View this thread: http://www.excelforum.com/showthread...hreadid=467031
    >




+ 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