Re: WEEKDAY()



Again it is because the underlying values of dates are just numbers. As I
said to Epinn, the value stored in a date of 21/4/2008 is 39559.

Now when you do a =MONTH(A1) in A2, you are not really returning a date, but
a simple month number (9 in the case quoted). But, because it is a number,
if you do date type things on it, Excel will not complain, it will just work
on whatever date that number resolves to. As a date is stored as the number
of days since 1st January 1900, the value of 9 will be treated as 9th Jan
1900, so if you format it as mmmm, you get January. Format it as dd/mm/yyyy,
and see what I mean.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"MartinW" <mtmw@xxxxxxxxxxxxxxx> wrote in message
news:eDsbPe60GHA.4816@xxxxxxxxxxxxxxxxxxxxxxx
Hi Bob,

Can you also explain another one along similar lines.
If I put todays date 09/09/2006 in A1.
Then in A2 I put =MONTH(A1) and I get 9 which is good.
I then format A2 as mmmm and I get January. What gives??

Confused
Martin




.



Relevant Pages

  • RE: File Merge Help
    ... It depends whether you want to change the underlying value stored in the ... SET Amount = Amount/100; ... So what should i do in access to format cell and devide by 100. ... "Ken Sheridan" wrote: ...
    (microsoft.public.access.gettingstarted)
  • Re: US date needs reformatting but not recognised by my UK compute
    ... I guess the first question is, is the underlying date serial number ... Press Alt-F11 to go to the ... format 20061016, but since it is in US format I cannot convert it into a ... advice on how to do this using a macro. ...
    (microsoft.public.excel.programming)
  • Re: WEEKDAY()
    ... the underlying value is 7. ... just format it to see it. ... Again as Biff, this is another nuance of Excel. ...
    (microsoft.public.excel.newusers)
  • RE: Round Off
    ... In the new column enter a custom format of 0 for all the cells and they will ... appear as you require but the underlying value won't have changed. ... "B" what I want is aftrer rounding off toal increase by 1. ... total sld remain unchanged ...
    (microsoft.public.excel.worksheet.functions)
  • Re: how to sort number properly in excel?
    ... Excel sorts based on the underlying value, not the format. ...
    (microsoft.public.excel.misc)

Loading