Re: WEEKDAY()



Hi Epinn,

The "--" is exactly the same as its usage in SUMPRODUCT, it is coercing into
a numeric.

=WEEKDAY(--"21/4/2008") gives #VALUE!
=WEEKDAYS(--"4/21/2008") gives 2.

As RD says the second version of that works for you, but fails for me is
because we have different date settings, yours are American, mine are
European.

But I prefer "/" to "-" and I tested it. I am glad that "/" works too.

The purpose of using the date in the format yyyy-mm-dd or yyyy/mm/dd is to
remove ambiguity (10/09/2006 is 9th Oct to you, it's 10th Sep to me). I
prefer the use of the "-" separator because that is part of the ISO
standard.

I find date functions may be as confusing as SUMPRODUCT().

No, you are just trying to understand properly so that you can use more
effectively. Nothing wrong with that. I answered a post on another forum
where a guy gave totally misleading information about SUMPRODUCT as if it
were gospel. It didn't affect the solution, which worked, but should the OP
have tried to take it further, he would really have gotten confused. I don't
see that happening to you.

And if you think dates are confusing, just pity us developers who work in
both markets, catering for all forms can be really challenging.

--
HTH

Bob Phillips

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


.



Relevant Pages

  • Re: How can I set Word to query/reject American English spellings?
    ... This is an American application on an American operating system, ... so start with Windows regional settings.. ... The proofing language for a given text is a paragraph attribute. ... appropriately for UK English, then you have to set the Windows, ...
    (microsoft.public.word.docmanagement)
  • Re: InternetReadFileEx
    ... Thanks, but it fails, returning error #6 to the debug window. ... What are the possible settings ... Dim hNetFile As Long ... Dim OutBuffer As INTERNET_BUFFERS ...
    (microsoft.public.vb.winapi)
  • Re: OT--MS Vista
    ... Never fails to make me chuckle;-) ... have an issue with my computer boot up. ... Tweak UI - This PowerToy gives you access to system settings that are ... Version 2.10 requires Windows XP Service Pack 1 or Windows Server ...
    (rec.food.cooking)
  • Re: Outlook "Test Account Settings .... " Slow to Receive emails
    ... Assuming that the slowness is at the ISP, then why does Outlook Express wait ... without failure and Outlook fails / times out? ... I've tried all the GUI settings that I ... > On some computers, some of the time, Receiving fails. ...
    (microsoft.public.outlook)
  • Re: Cant send email from Outlook?
    ... Error messages? ... The user was using Outlook Express and all settings worked fine. ... > Outlook fails. ...
    (microsoft.public.outlook.installation)