#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Formula trouble

I am trying to use the =days360 function.
=days360(D15,D19)
THIS WORKS FINE EXCEPT IF THERE IS NO DATE IN CELL D15, IT GIVES ME -39983.
How can I get it to enter a "0" if there is no date in one of the cells or
enter a default date??

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Formula trouble

=if(or(d15="", d19=""), 0, days360(D15,D19))
--
HTH...

Jim Thomlinson


"Becky" wrote:

I am trying to use the =days360 function.
=days360(D15,D19)
THIS WORKS FINE EXCEPT IF THERE IS NO DATE IN CELL D15, IT GIVES ME -39983.
How can I get it to enter a "0" if there is no date in one of the cells or
enter a default date??

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Formula trouble

=IF(COUNT(D15,D19)=2,DAYS360(D15,D19),0)


btw, do you really need DAYS360?

If you want to count the days you can just use

=D19-D15

format result as general

also you wouldn't get a negative value if D15 is empty, you would
get it if D19 is empty


=IF(COUNT(D15,D19)=2,D19-D15,0)

--


Regards,


Peo Sjoblom





"Becky" wrote in message
...
I am trying to use the =days360 function.
=days360(D15,D19)
THIS WORKS FINE EXCEPT IF THERE IS NO DATE IN CELL D15, IT GIVES
ME -39983.
How can I get it to enter a "0" if there is no date in one of the cells or
enter a default date??



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
still having trouble with this formula duckie Excel Discussion (Misc queries) 0 October 1st 07 09:16 PM
still having trouble with this formula duckie Excel Discussion (Misc queries) 0 October 1st 07 09:01 PM
'IF' formula trouble agw3 Excel Discussion (Misc queries) 2 August 9th 06 04:16 PM
I'm new at this - having trouble with a formula Dave Excel Discussion (Misc queries) 3 January 8th 06 02:16 AM
Formula Trouble JS Excel Worksheet Functions 7 March 24th 05 06:55 PM


All times are GMT +1. The time now is 01:05 AM.

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"