Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default data entry restricted to non-times

I need to restrict data entry to non-times. All other data is ok. But
once a time is entered with a colon my scheduling template formats all
future data entered in that cell as a time. How do I do data
validation to exclude times?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default data entry restricted to non-times

format the cell as Text or preceed your entries with a single apostrophe as
'14:22 to force the entries as text.

" wrote:

I need to restrict data entry to non-times. All other data is ok. But
once a time is entered with a colon my scheduling template formats all
future data entered in that cell as a time. How do I do data
validation to exclude times?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default data entry restricted to non-times

On Jun 15, 10:10 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)
wrote:
format the cell as Text or preceed your entries with a single apostrophe as
'14:22 to force the entries as text.

" wrote:
I need to restrict data entry to non-times. All other data is ok. But
once a time is entered with a colon my scheduling template formats all
future data entered in that cell as a time. How do I do data
validation to exclude times?


I actually need to have entries to be numbers or text but not times.
Thus I need the cells formatted as General. General formatting makes
10:00 show up as 0.416667. I need data entries to be restricted to non-
times. Can I have data validation set up to restrict time entries only
but still be able to enter numbers that can be used in formulas? Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default data entry restricted to non-times

Side note #1: The reason 10:00 showed up as 0.41667 is that 10 a.m. is .41667
of the way through a 24 hour period. That exercies gave you a little insight
as to how Excel thinks of time entries internally. Multiply 24 by .41667 and
see what you get.

Excel just insists that a number with a colon in it is a time value. I
couldn't even set up a custom number format as 00:00 without Excel telling me
I couldn't do that!

Side note #2: You said "...once a time is entered with a colon, my
scheduling template format all future data entered in that cell as a time."
So are you using one cell for entering different types of data?

But back to the issue at hand. While you cannot use data validation to
restrict ONE specific type of entry into a cell, you can use it to only allow
one particular type of data to be entered into a cell. Choose the cell then
choose Data | Validation and you will see that you have several choices for
"Allow":
Any Value
Whole Number
Decimal
List
Date
Time
Text length
Custom

You could choose one of the number types (Whole Number or Decimal) and that
would restrict entries to that type of numeric entries.

I think that if you need to make entries like 10:00 sometimes and 3.14159 at
other times, then you're going to need a VBA solution. The
Worksheet_Change() event could probably be used to help you out in this
situation, but more information about what type of data might be entered into
that cell would be needed. Or maybe I just don't fully understand the
problem - I'm currently under the impression that we are just talking about
one single cell on the sheet, and maybe you're talking about several
different cells?

" wrote:

On Jun 15, 10:10 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)
wrote:
format the cell as Text or preceed your entries with a single apostrophe as
'14:22 to force the entries as text.

" wrote:
I need to restrict data entry to non-times. All other data is ok. But
once a time is entered with a colon my scheduling template formats all
future data entered in that cell as a time. How do I do data
validation to exclude times?


I actually need to have entries to be numbers or text but not times.
Thus I need the cells formatted as General. General formatting makes
10:00 show up as 0.416667. I need data entries to be restricted to non-
times. Can I have data validation set up to restrict time entries only
but still be able to enter numbers that can be used in formulas? Thanks


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
i want to count how many times an entry occurs in an array JCB Excel Worksheet Functions 1 May 12th 09 02:59 AM
date fomulas for tracking data entry times WHGRIT Excel Discussion (Misc queries) 1 July 9th 08 03:40 PM
Data validation: want input restricted to date value or N/A Rachel Garrett Excel Worksheet Functions 2 June 11th 08 07:37 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
Forcing Data Entry in Certain Fields at Certain Times Arris[_2_] Excel Programming 1 April 29th 04 11:10 AM


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

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"