LarryTheK,
If i copy and paste the =DATEVALUE("31-Dec-2005") as Govind
provided it works fine. it shows the date as a serial.
If you Format a cell like you said (mm/dd/yyyy) (say A1). then if you
enter the date with a
leading ' you are takeing away the date format and entering the date as
text.
If you do this and your text/date is in A1 and you put in B1
=DATEVALUE(A1)
then you will also get the serial.
If you do the above and A1 is without the leading ' you will get the
#VALUE! error.
Do you have any data validation causing the (wrong data type) message?
It sound like you are using this data in some kind of caluction, which
may also
have some bearing.
Dave
Govind
Guest Posts: n/a
Re: datevalue
--------------------------------------------------------------------------------
Hi,
Try
=DATEVALUE("31-Dec-2005")
It works.
--
Piranha
------------------------------------------------------------------------
Piranha's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=20435
View this thread:
http://www.excelforum.com/showthread.php?threadid=387908
A further question: why do I get > when I seem to use " ???