+ Reply to Thread
Results 1 to 4 of 4

Weekday function giving error

  1. #1
    Registered User
    Join Date
    04-09-2011
    Location
    Karnal
    MS-Off Ver
    Excel 2003
    Posts
    22

    Weekday function giving error

    I am trying to make use of weekday function by putting a date in one cell and asking for the weekday number with the format.
    =weekday(A1,2) in a cell D2

    Say in A1 cell I have a date put in as 7/15/2014.

    However, I am obtaining error as #VALUE! and I don't know the reason behind it.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Weekday function giving error

    There is no error for me. I get 2 as a result. Make sure that the date in A1 is actually a real date and not text.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Weekday function giving error

    is it possible that it's not a real XL Date?....it may look like a date but that can just be formatting....

    right click on the cell and go to formatting and choose number and it should look like 41232 or something like that....otherwise, it's not a real XL Date and the WeekDay function wouldn't work
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Weekday function giving error

    Did this help?

+ 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. [SOLVED] Indirect function giving #REF! error
    By mqdias in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2013, 10:21 AM
  2. my function is giving value error
    By danielgri14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2011, 11:34 PM
  3. IF function giving error message
    By Neilbr in forum Excel General
    Replies: 5
    Last Post: 05-12-2009, 07:54 AM
  4. Function giving error
    By Martin in forum Excel General
    Replies: 3
    Last Post: 10-01-2005, 08:05 AM
  5. [SOLVED] Function giving Error
    By Martin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-30-2005, 11:05 PM

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