A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Mask for use in MS Excel



 
 
Thread Tools Display Modes
  #1  
Old August 22nd, 2004, 09:56 PM
Duncan Findlay
external usenet poster
 
Posts: n/a
Default Date Mask for use in MS Excel

Hi:

In MS Access there are masks available to restrict input info. Are there
such masks available in MS Excel? I specifically am looking for something
similar to MS Access' InputMasks fo use in MS Excel. My purpose is to
restrict the nature of input into a column reserved for dates only so that
the dates can be used as an acceptable "integer" to make comparisons with
dates in other cells.

Any suggestions?

Duncan


  #2  
Old August 23rd, 2004, 08:10 AM
John Nurick
external usenet poster
 
Posts: n/a
Default

Hi Duncan,

You're more likely to get an authorative answer if you ask in an Excel
group. But as far as I know Excel doesn't have input masks. However you
could probably use a function such as ISDATE() in the data validation
for the cells in question.

On Sun, 22 Aug 2004 16:56:50 -0400, "Duncan Findlay"
wrote:

Hi:

In MS Access there are masks available to restrict input info. Are there
such masks available in MS Excel? I specifically am looking for something
similar to MS Access' InputMasks fo use in MS Excel. My purpose is to
restrict the nature of input into a column reserved for dates only so that
the dates can be used as an acceptable "integer" to make comparisons with
dates in other cells.

Any suggestions?

Duncan


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
  #3  
Old August 23rd, 2004, 12:38 PM
Duncan Findlay
external usenet poster
 
Posts: n/a
Default

Thanks, John:

I have MS Excel 2000 and ISDATE() does not appear in my list of functions.
Is it possible to provide me with the parameters of this function so I can
try it?

Thanks,

Duncan




"John Nurick" wrote in message
...
Hi Duncan,

You're more likely to get an authorative answer if you ask in an Excel
group. But as far as I know Excel doesn't have input masks. However you
could probably use a function such as ISDATE() in the data validation
for the cells in question.

On Sun, 22 Aug 2004 16:56:50 -0400, "Duncan Findlay"
wrote:

Hi:

In MS Access there are masks available to restrict input info. Are there
such masks available in MS Excel? I specifically am looking for something
similar to MS Access' InputMasks fo use in MS Excel. My purpose is to
restrict the nature of input into a column reserved for dates only so

that
the dates can be used as an acceptable "integer" to make comparisons with
dates in other cells.

Any suggestions?

Duncan


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.



  #4  
Old August 23rd, 2004, 09:06 PM
John Nurick
external usenet poster
 
Posts: n/a
Default

Hi Duncan,

As I said, this isn't the place for authoritative Excel answers, in fact
I couldn't even spell "authoritative". And there isn't an ISDATE()
function.

One approach would be to take advantage of the fact that Excel and
Access both store date/times as numbers (e.g. the first moment of today
was 38222 and 6 pm was 3822.375. So you can check that a cell contains a
number that's an appropriate date by using a formula like
=AND(B338000,B339000)

It's also possible to create an IsDate() worksheet function in VBA. This
seems to do the job but needs testing on awkward cases:

Public Function IsDate(V As Variant) As Boolean
IsDate = VarType(V) = vbDate
End Function

Just paste the code into a module in your workbook and then use it like
any other function
=IsDate(B3)

On Mon, 23 Aug 2004 07:38:47 -0400, "Duncan Findlay"
wrote:

Thanks, John:

I have MS Excel 2000 and ISDATE() does not appear in my list of functions.
Is it possible to provide me with the parameters of this function so I can
try it?

Thanks,

Duncan




"John Nurick" wrote in message
.. .
Hi Duncan,

You're more likely to get an authorative answer if you ask in an Excel
group. But as far as I know Excel doesn't have input masks. However you
could probably use a function such as ISDATE() in the data validation
for the cells in question.

On Sun, 22 Aug 2004 16:56:50 -0400, "Duncan Findlay"
wrote:

Hi:

In MS Access there are masks available to restrict input info. Are there
such masks available in MS Excel? I specifically am looking for something
similar to MS Access' InputMasks fo use in MS Excel. My purpose is to
restrict the nature of input into a column reserved for dates only so

that
the dates can be used as an acceptable "integer" to make comparisons with
dates in other cells.

Any suggestions?

Duncan


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.



--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
  #5  
Old August 24th, 2004, 04:00 AM
Duncan Findlay
external usenet poster
 
Posts: n/a
Default

Thanks, John:

I did go on the Excel newsgroup and found that using data validation will
help to solve my problem (Data=Validation) - not exactly, but probably good
enough.

Thanks,

Duncan

"John Nurick" wrote in message
...
Hi Duncan,

As I said, this isn't the place for authoritative Excel answers, in fact
I couldn't even spell "authoritative". And there isn't an ISDATE()
function.

One approach would be to take advantage of the fact that Excel and
Access both store date/times as numbers (e.g. the first moment of today
was 38222 and 6 pm was 3822.375. So you can check that a cell contains a
number that's an appropriate date by using a formula like
=AND(B338000,B339000)

It's also possible to create an IsDate() worksheet function in VBA. This
seems to do the job but needs testing on awkward cases:

Public Function IsDate(V As Variant) As Boolean
IsDate = VarType(V) = vbDate
End Function

Just paste the code into a module in your workbook and then use it like
any other function
=IsDate(B3)

On Mon, 23 Aug 2004 07:38:47 -0400, "Duncan Findlay"
wrote:

Thanks, John:

I have MS Excel 2000 and ISDATE() does not appear in my list of

functions.
Is it possible to provide me with the parameters of this function so I

can
try it?

Thanks,

Duncan




"John Nurick" wrote in message
.. .
Hi Duncan,

You're more likely to get an authorative answer if you ask in an Excel
group. But as far as I know Excel doesn't have input masks. However you
could probably use a function such as ISDATE() in the data validation
for the cells in question.

On Sun, 22 Aug 2004 16:56:50 -0400, "Duncan Findlay"
wrote:

Hi:

In MS Access there are masks available to restrict input info. Are

there
such masks available in MS Excel? I specifically am looking for

something
similar to MS Access' InputMasks fo use in MS Excel. My purpose is to
restrict the nature of input into a column reserved for dates only so

that
the dates can be used as an acceptable "integer" to make comparisons

with
dates in other cells.

Any suggestions?

Duncan


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.



--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.



  #6  
Old August 24th, 2004, 06:58 PM
Carol
external usenet poster
 
Posts: n/a
Default

Duncan, if it is today's date you want, use =today() and
it automatically formats that for you and it changes as
the date does when you open it. If it is formatting
anykind you want, try Format-Cells-Nuimber and there
are a lot of types and many within each type. You can
format a celll, row or column that way.
-----Original Message-----
Thanks, John:

I did go on the Excel newsgroup and found that using data

validation will
help to solve my problem (Data=Validation) - not

exactly, but probably good
enough.

Thanks,

Duncan

"John Nurick" wrote in

message
.. .
Hi Duncan,

As I said, this isn't the place for authoritative Excel

answers, in fact
I couldn't even spell "authoritative". And there isn't

an ISDATE()
function.

One approach would be to take advantage of the fact

that Excel and
Access both store date/times as numbers (e.g. the first

moment of today
was 38222 and 6 pm was 3822.375. So you can check that

a cell contains a
number that's an appropriate date by using a formula

like
=AND(B338000,B339000)

It's also possible to create an IsDate() worksheet

function in VBA. This
seems to do the job but needs testing on awkward cases:

Public Function IsDate(V As Variant) As Boolean
IsDate = VarType(V) = vbDate
End Function

Just paste the code into a module in your workbook and

then use it like
any other function
=IsDate(B3)

On Mon, 23 Aug 2004 07:38:47 -0400, "Duncan Findlay"
wrote:

Thanks, John:

I have MS Excel 2000 and ISDATE() does not appear in

my list of
functions.
Is it possible to provide me with the parameters of

this function so I
can
try it?

Thanks,

Duncan




"John Nurick" wrote

in message
.. .
Hi Duncan,

You're more likely to get an authorative answer if

you ask in an Excel
group. But as far as I know Excel doesn't have input

masks. However you
could probably use a function such as ISDATE() in

the data validation
for the cells in question.

On Sun, 22 Aug 2004 16:56:50 -0400, "Duncan Findlay"
wrote:

Hi:

In MS Access there are masks available to restrict

input info. Are
there
such masks available in MS Excel? I specifically am

looking for
something
similar to MS Access' InputMasks fo use in MS

Excel. My purpose is to
restrict the nature of input into a column reserved

for dates only so
that
the dates can be used as an acceptable "integer" to

make comparisons
with
dates in other cells.

Any suggestions?

Duncan


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.



.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aggregating Date Data into Weeks and Quarters Roger Running & Setting Up Queries 3 July 11th, 2004 05:56 PM
Excel 2000 date does not display date correctly General Discussion 4 June 29th, 2004 10:09 AM
more dates!!! brigid Running & Setting Up Queries 6 May 26th, 2004 10:59 AM
How to turn off the automatic date feature in Excel 2003 Worksheet Functions 8 January 13th, 2004 11:16 PM
Excel date function Sheela Worksheet Functions 2 October 28th, 2003 10:12 AM


All times are GMT +1. The time now is 04:36 PM.


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