+ Reply to Thread
Results 1 to 7 of 7

WEEKDAY function problem

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Newcastle, England
    MS-Off Ver
    365
    Posts
    6

    WEEKDAY function problem

    Hi all, Can anyone help with what is probablya simple problem but it's got me stuck.
    When enter a date in cell A1 I want to return the day of the week as a number in A2. I am using the WEEKDAY function but it is reurning obscure dates rather than the day number

    Thanks

    Mike Bra

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: WEEKDAY function problem

    =weekday(a1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: WEEKDAY function problem

    Some add on explanation :D
    WEEKDAY( serial_number, [return_value] )
    serial_number is a date expressed as a serial number or a date in quotation marks.
    return_value is optional. It is the option used to display the result. It can be any of the following values:

    Value Explanation
    1 Returns a number from 1 (Sunday) to 7 (Saturday). This is the default if parameter is omitted.
    2 Returns a number from 1 (Monday) to 7 (Sunday).
    3 Returns a number from 0 (Monday) to 6 (Sunday).
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: WEEKDAY function problem

    That is what the weekday function does... can you give some examples of the obscure dates? How you are using the weekday function (the formula)? Or post an example workbook?

  5. #5
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: WEEKDAY function problem

    Are you trying to get the day of the week like Monday, Tuesday and so on..? If yes, below is the code, if just the day number - Fotis has already answered it.
    Please Login or Register  to view this content.
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: WEEKDAY function problem

    Quote Originally Posted by Mikebra View Post
    When enter a date in cell A1 I want to return the day of the week as a number in A2. I am using the WEEKDAY function but it is reurning obscure dates rather than the day number
    That's a simple formatting issue, Mike - A2 has a date format, change to general
    Audere est facere

  7. #7
    Registered User
    Join Date
    04-11-2013
    Location
    Newcastle, England
    MS-Off Ver
    365
    Posts
    6

    Re: WEEKDAY function problem

    Hi Guys, Thanks for all the replies, Problem sorted I couldn't see the wood for the trees.

    Mike

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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