Depends on what calculation you're doing.
If you have a couple of text dates in A1 and B1:
'9/6
'9/9
Excel will do it's best to coerce the value to numbers in a formula like:
=b1-a1
Those arithmetic operators really help.
But other formulas won't do that coersion:
=SUMPRODUCT(--(A1:A10=DATE(2005,9,6)),--(B1:B10="red"))
=======
You can see it with a non-date example.
Put
'1 in A1
'2 in A2
=a1+a2 in A3
=sum(a1,a2) in A4
=sum(a1+0,a2+0) in A5
0-0 Wai Wai ^-^ wrote:
>
> "Dave Peterson" <(E-Mail Removed)> ???
> news:(E-Mail Removed) ???...
> > If you're typing these values into the cell, you can either prefix them with a
> > leading apostrophe:
> >
> > '11/7
>
> Something I wonder:
> If you do so, then excel should treat "the date" as **text**.
> And you cannot use it to do calculations (eg calculate the date difference
> between one and another).
>
> But when I tried it out, it is not true. Calcuation can be made.
> How come?
--
Dave Peterson
|