+ Reply to Thread
Results 1 to 4 of 4

Day Function Not Working Properly

  1. #1
    Registered User
    Join Date
    04-10-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Day Function Not Working Properly

    I've noticed both my Day and Month function doing this:

    A1 = 3/26/2014
    B1 = DAY(A1).
    Returns 1/26/1900.

    What am I doing wrong? Thanks

    excel.PNG

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Day Function Not Working Properly

    You just need to reformat the cell to General or Number
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-10-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Day Function Not Working Properly

    Ha so simple. I appreciate it.

  4. #4
    Registered User
    Join Date
    03-06-2011
    Location
    chennai
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: Day Function Not Working Properly

    Please refer to help menu :Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

    So change the format to number or general. You will get the desired result.

+ 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. OFFSET function not working properly.
    By Terpatz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-05-2014, 09:41 PM
  2. Indirect function not working properly
    By zuri125 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2012, 01:40 PM
  3. [SOLVED] Sort function not working properly...
    By dllivermore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-01-2012, 05:45 PM
  4. sumproduct function not working properly
    By jls141 in forum Excel General
    Replies: 1
    Last Post: 04-27-2012, 03:15 PM
  5. vlookup function not working properly
    By carlosgdlf in forum Excel General
    Replies: 1
    Last Post: 03-05-2009, 03:24 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