Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cardingtr
 
Posts: n/a
Default 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.


--
cardingtr
------------------------------------------------------------------------
cardingtr's Profile: http://www.excelforum.com/member.php...o&userid=27027
View this thread: http://www.excelforum.com/showthread...hreadid=467031

  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

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


--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )



"cardingtr" wrote
in message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vacation Accrual Formula MissNadine Excel Worksheet Functions 0 August 18th 05 04:02 AM
formula for counting charachters in a cell ? Leezo Excel Discussion (Misc queries) 5 August 12th 05 09:51 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Formula for # of sales days in a month? Kerry Rosvold Excel Worksheet Functions 2 June 1st 05 09:11 PM
selecting days of week using a formula in spreadsheets Terry Excel Worksheet Functions 6 April 23rd 05 01:19 PM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"