+ Reply to Thread
Results 1 to 3 of 3

Date is turning into some weird number with if statement

  1. #1
    Registered User
    Join Date
    04-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2019
    Posts
    4

    Date is turning into some weird number with if statement

    using a if statement the date in my one column is turning into some random number I cant seem to figure out what's going on or why any suggestions?
    Picture attached with what it looks like.
    Attached Images Attached Images

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Date is turning into some weird number with if statement

    Dates are stored as numbers in Excel (starting at January 1, 1900). So 43913 is that many days after 1/1/1900, aka March 23, 2020.

    You can either format the result cell as Date (Short Date, Long Date, Custom) or wrap the formula in a TEXT function, e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I think formatting might be easier.

  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2019
    Posts
    4

    Re: Date is turning into some weird number with if statement

    Quote Originally Posted by Paul View Post
    Dates are stored as numbers in Excel (starting at January 1, 1900). So 43913 is that many days after 1/1/1900, aka March 23, 2020.

    You can either format the result cell as Date (Short Date, Long Date, Custom) or wrap the formula in a TEXT function, e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I think formatting might be easier.
    thanks that worked great

+ 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] Weird error: converting text date to date format
    By rjcarlantonio in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-18-2018, 02:04 PM
  2. Count the number of days between to date using if else statement.
    By Shahbazk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2017, 09:57 AM
  3. [SOLVED] Cell keeps changing date to weird Number
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2015, 12:54 PM
  4. [SOLVED] =A1&B1&C1 (Stop date from turning into serial number)
    By ashleyuk1984 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2013, 02:56 PM
  5. turning certain number into a word
    By lexi1331 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2013, 07:20 PM
  6. Weird statement - I know it's possible
    By zipper_018 in forum Excel General
    Replies: 2
    Last Post: 02-14-2012, 05:55 PM
  7. Replies: 2
    Last Post: 02-23-2006, 09:40 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