ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do i ensure people use the right date format in excel? (https://www.excelbanter.com/excel-worksheet-functions/136924-how-do-i-ensure-people-use-right-date-format-excel.html)

lucyh

how do i ensure people use the right date format in excel?
 
I am trying to set up a column where people enter the date that they are
attending an event. In order to keep things neat and ensure that we can sort
the column, we need all the dates to be entered in the same format. How on
earth can we do this with Excel?

Teethless mama

how do i ensure people use the right date format in excel?
 
Custom Format cells as:

m/d/yyyy


"lucyh" wrote:

I am trying to set up a column where people enter the date that they are
attending an event. In order to keep things neat and ensure that we can sort
the column, we need all the dates to be entered in the same format. How on
earth can we do this with Excel?


JE McGimpsey

how do i ensure people use the right date format in excel?
 
You can't affect the way a user enters a value in a cell. However,
there's really no reason to as long as you format the cell the way you
want. What difference does it make if a user enters 1/1/2007 or
1-Jan-2007 as long as the display format is, say 01 Jan 2007.

You *could* use an InputBox or a UserForm to control input if you'd like
to use VBA event macros.



In article ,
lucyh wrote:

I am trying to set up a column where people enter the date that they are
attending an event. In order to keep things neat and ensure that we can sort
the column, we need all the dates to be entered in the same format. How on
earth can we do this with Excel?


Harlan Grove[_2_]

how do i ensure people use the right date format in excel?
 
JE McGimpsey wrote...
You can't affect the way a user enters a value in a cell. However,
there's really no reason to as long as you format the cell the way
you want. What difference does it make if a user enters 1/1/2007
or 1-Jan-2007 as long as the display format is, say 01 Jan 2007.

....
lucyh wrote:
I am trying to set up a column where people enter the date that
they are attending an event. In order to keep things neat and
ensure that we can sort the column, we need all the dates to be
entered in the same format. How on earth can we do this with
Excel?


Reading between the lines, I suspect the OP believes dates are stored
as text, so dates entered as 3/28/2007 could sort after (later than)
04/01/2007. That's not the case. If dates are entered in a valid date
format, they're converted into date values, which are numbers
representing 61 plus the number of days (with time of day as fraction
of day) after 1 Mar 1900 in the 1900 date system or the number of days
from 1 Jan 1904 in the 1904 date system. Either way, 4/1/2007 and
04/01/2007 would both be stored as 39173.

As long as the OP hasn't given these cells the number format Text (and
she should give them a date number format), she can sort them
consistently. Wouldn't hurt to include a data validation rule that the
entered values should be numbers between the earliest and latest
allowed date values.



All times are GMT +1. The time now is 03:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com