Re: datevalue





"Govind" wrote:

> Hi,
>
> Try
>
> =DATEVALUE("31-Dec-2005")
>
> It works.
>
> Your first two values were within single quotes and hence they wont
> work. On the third format, am not sure of the reason why it doesnt work,
> but your date format should be in sync with your default date format set
> in the Regional settings.
>
> Regards
>
> Govind.
>
> LarryTheK wrote:
>
> > When I try to use the function DateValue, I keep getting an error message of
> > "wrong data type". I've tried many ways of entering the date: '12/31/05,
> > '12/31/2005, "12/31/2005", but none seem to work.
> >
> > This was okay last year, but recently I get the error messages. Can someone
> > help?
>

Sorry, it didn't help. Double quotes still give give the same error
message: Wrong data type.

I think the function is wrong.

Bottom line, I can't compute date differences to use in a formula.

LarryTheK
.



Relevant Pages

  • RE: Syntax Error - Missing Operator - When Using Date !
    ... with single quotes: ... format. ... I get the "Syntax Error " Error displayed. ... Set conn = New ADODB.Connection ...
    (microsoft.public.vb.database)
  • Re: Combobox rowsource
    ... gives an error message: "runtime error 380.Could not set the Rowsource ... Invalid property value" ... the single quotes but it appears if I remove the spaces and leave the ... remove the spaces from the filename? ...
    (microsoft.public.excel.programming)
  • Re: Default XML Receive pipeline
    ... I get this error message: ... This is only when I receive an XML message with this XML Declaration: ... The XML Disassembler component doesn't like it when the "encoding" attribute ... of the declaration is wrapped in single quotes as opposed to double ...
    (microsoft.public.biztalk.general)
  • Re: $ in csh
    ... one of the parameters that I'm passing is a home directory of a tandem ... but when I try to do it with csh, I still get an error message (the ... How about single quotes instead of double quotes, ...
    (comp.unix.programmer)
  • Re: Excel 2007 Replace and single quotes
    ... change all single quotes to "zzzzz". ... format to text and change the "zzzzz" to nothing. ... Productivity add-ins and downloadable books on VB macros for Excel ... I want to remove all of the single quotes but keep the leading zeros. ...
    (microsoft.public.excel)