LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Check how date is entered

Ok, I'm not disputing any of what you state other than how Excel handles dates,
OR how date formats work. So here's an exercise you can do to see what I'm
saying:

Select A1:A3
While selected, key Ctrl+; followed by Ctrl+Enter
Today's date appears in numeric form 05/05/2018

Select A2 and set a Date format "14-Mar" in the Date NumberFormat list
Today's date appears in textual form 05-May

Select A3 and set its format to Text
Today's DateSerial appears 43225

Select A1:A2, type 43225 and key Ctrl+Enter
The display of A1:A2 doesn't change

Now we'll look at the system date format:
Select A1:A2
Since m/d are identical, type 5/6 then Ctrl+Enter and watch what happens. Now
type 6/5 then Ctrl+Enter into those cells. Now you see the system format for
dates displayed normally in A1 but without any ambiguity in A2.

So then, when dates are imported/pasted into cells, Excel reads the DateSerial
and renders that in the system format. Now since the numeric display has been
ambiguous to many since Vista, my solution has been to use textual formatting
instead. (That's all I'm saying) So when I design spreadsheets I deliberately
use textual date formats so there's no ambiguity (as expressed by the OP in
this thread) as to what the date is!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check for duplicate numbers from ones entered and anoter set Goldie Excel Programming 1 May 29th 09 08:47 AM
Dates - Need to display date one month prior to user-entered date brettopp Excel Worksheet Functions 13 December 3rd 07 05:58 PM
Date subtraction -How to not show negative when 2nd date not entered Edward[_2_] New Users to Excel 2 September 27th 07 03:03 PM
Check Mark appears when a letter is entered in a field Gina Excel Programming 2 February 22nd 07 08:23 PM
Macro to check if data has been entered Mike R. Excel Programming 1 December 20th 04 11:14 PM


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"