Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default function to force date?

Hello Experts,

I have an interactive spreadsheet in which users enter data into
approx. 5 columns.

In one of the columns, I would like users to enter the date in
yyyymmdd format, e.g., 20070226. I know they won't get it right so I
would like to preemptively stop it.

I've used data validation on some of the other columns, but have found
it not applicable with the scenario.

It would be nice to code the column with some sort of substring, e.g.,
first four characters =2007; next two between 01 and 12; next two
between 01 and 31-knowing, however, this would not completely solve my
problem; it would help it; however.

Any thoughts?

alex

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default function to force date?

My advice would be to create a custom format for that cell that would show
the date in the format you are looking for. Enter yyyymmdd as the custom
format. Then you can add data validation to ensure that the users enter
dates. It doesn't matter how the user enters the date. However, they enter
the date it will be displayed according to the format you have set (yyyymmdd).

However, if you really need them to enter the date in the yymmdd format as
well as displaying it in that format, the only way to do that is through a
macro.
Or, you could split the date up into 3 separate parts/cells (year, month,
and day) and apply data validation on those cells.

Again, my advice would be to use the cell format to display the date the way
you want. Who cares how the users enter the date.

Hope that helps.
Bill Horton

"alex" wrote:

Hello Experts,

I have an interactive spreadsheet in which users enter data into
approx. 5 columns.

In one of the columns, I would like users to enter the date in
yyyymmdd format, e.g., 20070226. I know they won't get it right so I
would like to preemptively stop it.

I've used data validation on some of the other columns, but have found
it not applicable with the scenario.

It would be nice to code the column with some sort of substring, e.g.,
first four characters =2007; next two between 01 and 12; next two
between 01 and 31-knowing, however, this would not completely solve my
problem; it would help it; however.

Any thoughts?

alex


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default function to force date?

You could also follow Ron de Bruin's tips for placing a pop-up calendar on
your worksheet

http://www.rondebruin.nl/calendar.htm

"alex" wrote:

Hello Experts,

I have an interactive spreadsheet in which users enter data into
approx. 5 columns.

In one of the columns, I would like users to enter the date in
yyyymmdd format, e.g., 20070226. I know they won't get it right so I
would like to preemptively stop it.

I've used data validation on some of the other columns, but have found
it not applicable with the scenario.

It would be nice to code the column with some sort of substring, e.g.,
first four characters =2007; next two between 01 and 12; next two
between 01 and 31-knowing, however, this would not completely solve my
problem; it would help it; however.

Any thoughts?

alex


Reply
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
Force date cell to show [blank] if end of month lisa110rry Excel Discussion (Misc queries) 2 January 6th 07 01:33 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Force function to show positive or negative number? smoore Excel Worksheet Functions 3 March 3rd 06 08:34 PM
How to force a wrap text function when the cell is big enough to p Jason Bathon Excel Discussion (Misc queries) 1 April 13th 05 03:21 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


All times are GMT +1. The time now is 07:45 PM.

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

About Us

"It's about Microsoft Excel"