Naming a (date) constant

D

David

Greetings & TIA for your help
I can name a constant with Insert|Name|Define then type "MyConstant" and
type =500 in "Refers To".
How do I enter a date in the "refers to" box?
 
B

Bob Phillips

or

=--("2004/11/29")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
J

JulieD

Hi Bob

(won't even ask how you came up with this one!) but what i will ask is using
both yours and Frank's method i'm getting the serial number returned in the
cell rather than a "date" ... i know its just a matter of formatting it, but
is there anyway when using a date in this way, for excel to "automatically"
format it correctly?

Cheers
JulieD
 
B

Bob Phillips

Julie,

Not to keep it as a date, but you can use

=TEXT(--("2004/11/29"),"dd mmm yyyy")

which returns it as text, although you can do math on it

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top