PC Review


Reply
 
 
Jim
Guest
Posts: n/a
 
      22nd Oct 2003
Several persons are using my spreadsheet and they enter the date in
different formats (12/11/2003 or 1.2.03). This date is used in a calculation
and requires the format DD/MM/YYYY. Is there a way that I can reject a date
that is not in the required format.

Thank you

Jim


 
Reply With Quote
 
 
 
 
Bernard V Liengme
Guest
Posts: n/a
 
      22nd Oct 2003
From an answer I gave in another groupd 2 days ago

Normally all that is needed to change from US <-> Rest of World dates scheme
is to use Format|Cells|Dates, But I suspect the dots in you dates are
causing a problem. You may need to extract the three numeric values and make
a 'date' out of them.

Here is one way with your date in A2 (there could well be better ways -
text functions are not my speciality)
dd(in C2) =MID(A2,1,FIND(".",A2)-1)
mm(in D2)
=MID(A2,FIND(".",A2)+1,FIND(".",A2,FIND(".",A2)+1)-FIND(".",A2)-1)
yy(in E2) =RIGHT(A2,2)
date =DATE(E2,D2,C2)

Having got the correct dates you can use Copy followed by Paste Special as
Values to let you delete all the intermediate stuff.

Bernard


"Jim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Several persons are using my spreadsheet and they enter the date in
> different formats (12/11/2003 or 1.2.03). This date is used in a

calculation
> and requires the format DD/MM/YYYY. Is there a way that I can reject a

date
> that is not in the required format.
>
> Thank you
>
> Jim
>
>



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      22nd Oct 2003
On Wed, 22 Oct 2003 16:08:35 +0100, "Jim" <(E-Mail Removed)> wrote:

>Several persons are using my spreadsheet and they enter the date in
>different formats (12/11/2003 or 1.2.03). This date is used in a calculation
>and requires the format DD/MM/YYYY. Is there a way that I can reject a date
>that is not in the required format.
>
>Thank you
>
>Jim
>


Check out Data/Validation


--ron
 
Reply With Quote
 
Jim Kenny
Guest
Posts: n/a
 
      22nd Oct 2003
have tried data validation

jim
"Jim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Several persons are using my spreadsheet and they enter the date in
> different formats (12/11/2003 or 1.2.03). This date is used in a

calculation
> and requires the format DD/MM/YYYY. Is there a way that I can reject a

date
> that is not in the required format.
>
> Thank you
>
> Jim
>
>



 
Reply With Quote
 
jim
Guest
Posts: n/a
 
      23rd Oct 2003
Validation is not adequate really


Jim


"Jim Kenny" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> have tried data validation
>
> jim
> "Jim" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Several persons are using my spreadsheet and they enter the date in
> > different formats (12/11/2003 or 1.2.03). This date is used in a

> calculation
> > and requires the format DD/MM/YYYY. Is there a way that I can reject a

> date
> > that is not in the required format.
> >
> > Thank you
> >
> > Jim
> >
> >

>
>



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      23rd Oct 2003
On Thu, 23 Oct 2003 09:15:06 +0100, "jim" <(E-Mail Removed)> wrote:

>Validation is not adequate really
>
>
>Jim


Well it would reject dates that are not in the required format, which is what
you asked for.

Do you have some additional requirements that you did not state?


--ron
 
Reply With Quote
 
Jim
Guest
Posts: n/a
 
      23rd Oct 2003
Needs to regect dates that are not in the correct format such as 1.1.03
which is being accepted as a time.Validation seems to check for certain
dates


Jim



"Ron Rosenfeld" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thu, 23 Oct 2003 09:15:06 +0100, "jim" <(E-Mail Removed)> wrote:
>
> >Validation is not adequate really
> >
> >
> >Jim

>
> Well it would reject dates that are not in the required format, which is

what
> you asked for.
>
> Do you have some additional requirements that you did not state?
>
>
> --ron



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      23rd Oct 2003
On Thu, 23 Oct 2003 17:20:46 +0100, "Jim" <(E-Mail Removed)> wrote:

>Needs to regect dates that are not in the correct format such as 1.1.03
>which is being accepted as a time.Validation seems to check for certain
>dates
>
>
>Jim
>



Well if I use Data Validation, set it to dates, and enter a date range such as
1/1/1920 to 1/1/2999, 1.1.03 gets rejected; as do entries that could be
accepted as times here in the US. Such as 1:10:00


What regional settings are you using?


--ron
 
Reply With Quote
 
jim
Guest
Posts: n/a
 
      24th Oct 2003
Thanks Ron


That seems to work


Jim


"Ron Rosenfeld" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thu, 23 Oct 2003 17:20:46 +0100, "Jim" <(E-Mail Removed)>

wrote:
>
> >Needs to regect dates that are not in the correct format such as 1.1.03
> >which is being accepted as a time.Validation seems to check for certain
> >dates
> >
> >
> >Jim
> >

>
>
> Well if I use Data Validation, set it to dates, and enter a date range

such as
> 1/1/1920 to 1/1/2999, 1.1.03 gets rejected; as do entries that could be
> accepted as times here in the US. Such as 1:10:00
>
>
> What regional settings are you using?
>
>
> --ron



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      24th Oct 2003
On Fri, 24 Oct 2003 13:25:38 +0100, "jim" <(E-Mail Removed)> wrote:

>Thanks Ron
>
>
>That seems to work
>
>
>Jim


You're welcome. Glad it's working for you.


--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I time/date stamp an entry in a note from a calendar entry? Sweet Microsoft Outlook Calendar 1 2nd Apr 2010 07:33 PM
Excel 2002 date entry: Cannot get away from d-m-yy entry format Steve Eklund Microsoft Excel Misc 3 11th May 2009 04:57 PM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 01:08 AM
Data Entry Restrictions & Date/Time Entry =?Utf-8?B?S01jR2Vl?= Microsoft Excel Misc 3 30th Dec 2003 05:58 PM
Date fields automatically changing when today date matches date field entry.Help! Brian Cassin Microsoft Access Forms 1 15th Nov 2003 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 AM.