Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default about this formula =DATEDIF(J5,H5,"d")

i can use this formula in my excel {=DATEDIF(J5,H5,"d")} the results is VALUE
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default about this formula =DATEDIF(J5,H5,"d")

Hi,
That's wrong formula.
If you want to find if the cell contains Date, you can go for,
=If(IsDate(yourCell),"D"))
or
=IsNumber(yourCell)
the above formula will interpret both numbers and dates as produces boolean
(yes / no) result.
"insting" wrote:

i can use this formula in my excel {=DATEDIF(J5,H5,"d")} the results is VALUE

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default about this formula =DATEDIF(J5,H5,"d")

Huh?

IsDate isn't an XL function, and the OP's function works fine if J5 and
H5 are dates, with J5<=H5.

If you're not familiar with DATEDIF, see

http://cpearson.com/excel/datedif.aspx


In article ,
Nathan Jag <Nathan wrote:

Hi,
That's wrong formula.
If you want to find if the cell contains Date, you can go for,
=If(IsDate(yourCell),"D"))
or
=IsNumber(yourCell)
the above formula will interpret both numbers and dates as produces boolean
(yes / no) result.
"insting" wrote:

i can use this formula in my excel {=DATEDIF(J5,H5,"d")} the results is
VALUE

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default about this formula =DATEDIF(J5,H5,"d")

First, if by {...} you're indicating that you're array-entering the
formula, you don't need to.

What are the values in J5 and H5? DATEDIF requires that J5 and H5 are
dates (and J5<=H5). If they are Text, instead, you'll get the #VALUE!
error.


In article ,
insting wrote:

i can use this formula in my excel {=DATEDIF(J5,H5,"d")} the results is VALUE

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default about this formula =DATEDIF(J5,H5,"d")

And if you're really interested in the difference in days, you can use:

=h5-j5
and format as General (or not date)

J5 and H5 must be real dates.

insting wrote:

i can use this formula in my excel {=DATEDIF(J5,H5,"d")} the results is VALUE


--

Dave Peterson


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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM


All times are GMT +1. The time now is 01:17 PM.

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

About Us

"It's about Microsoft Excel"