+ Reply to Thread
Results 1 to 32 of 32

O365 - Date not being seen as a number

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    O365 - Date not being seen as a number

    I've had this happen on two machines and I can't figure out if it is a setting somewhere that was mistakenly turned off at some point.

    Normally if you enter 08/09/2019 into a cell and press enter, excel will automatically see it as a number. We can help this along by setting the format to that matching type and entering the same thing.

    My problem
    1. Enter 08/09/2019 into cell A1
    2. In cell B1 enter =IsNumber(A1)
    3. Result should be True, but it comes up as False instead

    Automatic formula calculation is turned on.
    Formatting is set to date for the cell.
    Fresh reboot with no other excel process running

    Any ideas what the trouble could be?

    Thanks,

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: O365 - Date not being seen as a number

    Check to see if there is a leading space when entering that date
    Are you positive the format is date?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Positive. There is no leading space either.

    It started off with certain workbooks failing and I traced it back to the columns of dates. You could open these workbooks on just about all machines and they work fine. This one, just sees the date column as a text value.

    That's when I tried to see if it was a number at all and it comes back with false.

    That test I wrote in the first post should result in True. Fresh boot up of excel, type in a standard date in A1 and see if that value is a number. Any version of excel I tried results in True, except this machine and it has me stumped.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: O365 - Date not being seen as a number

    What happens if you F2 ENTER on that cell?

  5. #5
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    I tried that, it that doesn't force it either. I also tried copy/pasting it into a different spot, setting format to date and pasting it back.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: O365 - Date not being seen as a number

    Is it only in certain cells/sheets/files?

  7. #7
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    No, its any workbook on this PC. The example formula I posted is based off simply opening excel and in Sheet 1 typing in a date.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,857

    Re: O365 - Date not being seen as a number

    No problem here in Excel 365 - sounds like a local issue. Have you rebooted the machine? Have you tried a repair of Excel?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Definitely rebooted the machine. Looks like I'll have to give repair a shot. Just wanted to make sure I wasn't overlooking something before hand.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: O365 - Date not being seen as a number

    Is the date correct in line with your regional settings?

    If your pc is set to use the Canadian standard format of yyyy-mm-dd then your pc probably doesn't recognise mm/dd/yyyy or dd/mm/yyyy dates as a valid format.

    Note that this is a windows setting, not an excel setting.

  11. #11
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: O365 - Date not being seen as a number

    Canadian standard is dd/mm/yyyy Though I enforce US standard on most company systems (due to most vendor software exporting dates in mm/dd/yyyy format.)

    But yyyy-mm-dd is universally accepted (even when short form is set to dd/mm/yyyyy).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  12. #12
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: O365 - Date not being seen as a number

    Quote Originally Posted by CK76 View Post
    Canadian standard is dd/mm/yyyy
    Wikipedia let me down again

  13. #13
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Haha, yes we do love to interchange our date format. That is a good catch on the regional settings. In this case I don't believe it would be the culprit though. Reason I believe that is 08/09/2019 would be a valid date in either format (mm-dd or dd-mm). While it would give the wrong value, the trouble here is that excel simply says it flat out isn't a serial date, which it should. Even if it thought it was August 9th or September 8th.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,857

    Re: O365 - Date not being seen as a number

    Can you attach a workbook showing the issue? Just so that we can check that it is just on your system and not something in the workbook itself.

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: O365 - Date not being seen as a number

    What happens if you enter a date in yyyy-mm-dd format? Does it accept that one?

    What about =TODAY() formatted as short date?

  16. #16
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    For sure. Here is the sequence of events
    1. Opened new workbook
    2. Select A1 and change format from General to Date
    3. Type in 09/08/2019
    4. Cell B2 type in ISNUMBER(A1)
    5. Results is False



    Now if I was to do this on my computer
    1. Opened new workbook
    2. Select A1 and leave format as general (same result if I change it first to date)
    3. Type in 09/08/2019
    4. Date automatically changes to 9/8/2019
    5. Cell B2 type in ISNUMBER(A1)
    6. Results is True

    Now on the buggered computer, I also tried it without the preceding 0 just in case and same result.
    1. Opened new workbook
    2. Select A1 and change format from General to Date
    3. Type in 9/8/2019
    4. Cell B2 type in ISNUMBER(A1)
    5. Results is False

      Workbook is also attached
    picturetest.jpg
    Attached Files Attached Files

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,857

    Re: O365 - Date not being seen as a number

    Do you have calculations set to manual instead of automatic?

    Formulas > Calculation Options

    Check your defaults on the 'buggered' PC.
    Last edited by AliGW; 08-14-2019 at 11:56 AM.

  18. #18
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    I've found a third computer that does this. It makes me think that there is a setting somewhere in excel or windows that could be causing this.

  19. #19
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Calculations are set to auto. I have a few macros that run so it was one of the first things checked just in case I forgot to turn it back on at some point. The third machine I just located with this quirk has never had any VBA run on it, the fellow rarely is in excel.

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,857

    Re: O365 - Date not being seen as a number

    Well, the reason I asked is that it was the same here when I opened the workbook, but clicking in the cell and ENTER rectified it. I was also able to add a date and it worked perfectly in the cell next to it.

  21. #21
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Yup. When I open that workbook on my PC and press enter it is rectified and changes to True.

  22. #22
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: O365 - Date not being seen as a number

    When I open the workbook attached to post #16, the date in A1 is text, F2 enter converts it to a proper date.

    I'm still convinced that it's regional settings.

    Go to the vba editor, press 'ctrl g' to open the 'immediate' pane, then copy and paste the line below and press enter. Is the result 0, 1 or 2?
    Please Login or Register  to view this content.

  23. #23
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: O365 - Date not being seen as a number

    Hmm, try checking Personal.xlsb file located in C:\Users\UserName\AppData\Roaming\Microsoft\Excel\XLSTATRT.

    Other things you can check...
    1. File -> Options -> Language. See Editing languages. If it has something other than English (Canada) or English (US) in there.
    2. Check that these computers didn't accidentally have French keyboard turned on I doubt this to be the case, but could happen.
    3. Start Excel in Safe mode. And see if it still has same issue.

  24. #24
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Quote Originally Posted by jason.b75 View Post
    When I open the workbook attached to post #16, the date in A1 is text, F2 enter converts it to a proper date.

    I'm still convinced that it's regional settings.

    Go to the vba editor, press 'ctrl g' to open the 'immediate' pane, then copy and paste the line below and press enter. Is the result 0, 1 or 2?
    Please Login or Register  to view this content.
    I really hope it is! The result I get is 2

  25. #25
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Quote Originally Posted by CK76 View Post
    Hmm, try checking Personal.xlsb file located in C:\Users\UserName\AppData\Roaming\Microsoft\Excel\XLSTATRT.

    Other things you can check...
    1. File -> Options -> Language. See Editing languages. If it has something other than English (Canada) or English (US) in there.
    2. Check that these computers didn't accidentally have French keyboard turned on I doubt this to be the case, but could happen.
    3. Start Excel in Safe mode. And see if it still has same issue.
    No file in XLSTART. I think its normally empty by default though?

    "English (United States) (default)" is selected

    Same results in Safe mode

  26. #26
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: O365 - Date not being seen as a number

    Quote Originally Posted by Vlad717 View Post
    The result I get is 2
    That means that your default date setting is year-month-day so anything else would be recognised as text.
    Quoted from Microsoft help.
    Order of date elements: 0 = month-day-year, 1 = day-month-year, 2 = year-month-day
    You will probably find that entering 08/09/2019 as 08/09/19 (2 digit year) will work, but it will be 19 September 2008 rather than 09 August 2019 or 08 September 2019 depending on which format you thought you were using.
    Last edited by jason.b75; 08-14-2019 at 12:50 PM.

  27. #27
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Oh, I'm feeling good about this. I have 0 as a result on mine. I'll update once its changed@

  28. #28
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: O365 - Date not being seen as a number

    ...Same results in Safe mode
    Then most likely culprit is Region setting (date, time or number formats) as jason pointed out.

  29. #29
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    You guys are fantastic. It was the regional settings. It was set to Y/M/D which is why it wasn't interchangeable. Everything works now as it should. Thank you!!

  30. #30
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: O365 - Date not being seen as a number

    Glad you got it solved.
    FYI - There may be benefit to talking with your IT department. Typically, region setting should be standardized across the company network (using Group Policy etc).

    If your issue is resolved, please mark the thread as solved by using Thread tools found at top of your initial post.

  31. #31
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: O365 - Date not being seen as a number

    Trouble is our help desk is in the states and a problem with excel which is otherwise working is pretty low on the priority scale. Ticket has been in que since last thursday and finally got looked at today when I escalated it. I will mention what the result was though as they normally image the PC's when shipped so its rather odd there is a few with different date formats.

  32. #32
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,857

    Re: O365 - Date not being seen as a number

    Glad it’s sorted. Rather frustrating for you!

+ 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. Creating new pivot table on O365 online does not work
    By noelaniag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-12-2019, 03:22 AM
  2. O365 Excel 64 bit problems
    By ks1102 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2019, 11:58 PM
  3. [SOLVED] Slow macro since O365 upgrade
    By bmachefe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2019, 06:12 AM
  4. please help me add 1, 2 or 3 years to a date in Excel (O365)
    By Steve.west in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-22-2018, 04:24 PM
  5. [SOLVED] xlsm modified on o365 generates compile error
    By HarryKlein in forum Excel General
    Replies: 4
    Last Post: 10-11-2018, 04:17 AM
  6. Outlook screen blank in O365 mode
    By saamer in forum Office 365
    Replies: 0
    Last Post: 09-18-2013, 10:04 AM
  7. iCloud in O365
    By a2fire2i in forum Office 365
    Replies: 0
    Last Post: 09-12-2013, 02:21 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