+ Reply to Thread
Results 1 to 4 of 4

Why is weekday function working like this

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Why is weekday function working like this

    Hi,

    I have the following dates
    5/10/2016
    5/11/2016
    5/12/2016
    5/13/2016
    5/14/2016
    5/15/2016
    5/16/2016


    When i calculate the weekday for the above dates i get the following
    3
    4
    5
    6
    7
    1
    2


    does anyone know why this is? From the literature online i thought sunday was 1, monday was 2 ...etc....

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Why is weekday function working like this

    But 5/15/2016 is a Sunday, 5/16/2016 is a Monday,etc.!

    Regards
    Last edited by XOR LX; 08-26-2016 at 08:50 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Why is weekday function working like this

    If you use without argument then yes, sunday is 1 and 15.05.2016 was a sunday.

    If you want monday 1 then use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Why is weekday function working like this

    sorry, for some reason i thought it was doing something else..........thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. weekday function
    By Thillu in forum Excel General
    Replies: 1
    Last Post: 03-09-2016, 05:40 PM
  2. Excel VBA code to return weekday name from a date then autofilters for userdefined weekday
    By studyengineering in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2016, 03:24 PM
  3. Function weekday
    By harvindersingh11 in forum Hello..Introduce yourself
    Replies: 3
    Last Post: 07-16-2014, 12:34 PM
  4. WEEKDAY not working correctly need HELP!!!
    By devil20a in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2012, 11:15 PM
  5. WEEKDAY function not working
    By devil20a in forum Excel General
    Replies: 3
    Last Post: 07-25-2012, 07:58 PM
  6. Weekday function into VBA
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2010, 07:20 AM
  7. [SOLVED] Weekday Function
    By John in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1