Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Validate to quarter units

Is there a way to have the cells validate to quarter units? Specifically, I
only want users to be able to enter .00; .25; .50; or .75 numbers.
--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Validate to quarter units

Hi Shawn,

Not sure of the interpretation of your question. Do you mean that all values
must be less than one be in quarter increments or that the values can include
greater than one but must be in quarter increments.

Use Data validation. Select the range to be validated and enter the formula
as if it applies to the first cell of the selected range. (Excel looks after
applying it correctly to the remaining cells in the selection.)

If the first option above then the following in Data Validation formula.
=AND(MOD(A1,0.25)=0,A1<1)

If the second option then the following Data Validation formula.
=MOD(A1,0.25)=0

--
Regards,

OssieMac


"Shawn" wrote:

Is there a way to have the cells validate to quarter units? Specifically, I
only want users to be able to enter .00; .25; .50; or .75 numbers.
--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Validate to quarter units

The cells can be less than or greater than 1, but would never be greater than
24 or less than 0. This is on a time sheet and we caputre time to the
quarter unit. So a formula that would validate greater than 0, less than
24.00001 and to the quarter unit would be idea.
--
Thanks
Shawn


"OssieMac" wrote:

Hi Shawn,

Not sure of the interpretation of your question. Do you mean that all values
must be less than one be in quarter increments or that the values can include
greater than one but must be in quarter increments.

Use Data validation. Select the range to be validated and enter the formula
as if it applies to the first cell of the selected range. (Excel looks after
applying it correctly to the remaining cells in the selection.)

If the first option above then the following in Data Validation formula.
=AND(MOD(A1,0.25)=0,A1<1)

If the second option then the following Data Validation formula.
=MOD(A1,0.25)=0

--
Regards,

OssieMac


"Shawn" wrote:

Is there a way to have the cells validate to quarter units? Specifically, I
only want users to be able to enter .00; .25; .50; or .75 numbers.
--
Thanks
Shawn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Validate to quarter units

On Thu, 25 Feb 2010 10:49:01 -0800, Shawn
wrote:

Is there a way to have the cells validate to quarter units? Specifically, I
only want users to be able to enter .00; .25; .50; or .75 numbers.


Data/Validation/Settings

Custom
Formula: =MOD(A1,0.25)=0

--ron
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Validate to quarter units

I got the following to do just what I wanted (kicks out less than 0, more
than 24, and anything that isn't on a quarter unit).

=IF(MOD(L1,0.25)<0,FALSE,IF(L1<0,FALSE,IF(L124,F ALSE,TRUE)))

--
Thanks
Shawn


"Ron Rosenfeld" wrote:

On Thu, 25 Feb 2010 10:49:01 -0800, Shawn
wrote:

Is there a way to have the cells validate to quarter units? Specifically, I
only want users to be able to enter .00; .25; .50; or .75 numbers.


Data/Validation/Settings

Custom
Formula: =MOD(A1,0.25)=0

--ron
.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Validate to quarter units

On Thu, 25 Feb 2010 12:51:02 -0800, Shawn
wrote:

I got the following to do just what I wanted (kicks out less than 0, more
than 24, and anything that isn't on a quarter unit).

=IF(MOD(L1,0.25)<0,FALSE,IF(L1<0,FALSE,IF(L124, FALSE,TRUE)))

--
Thanks
Shawn


Glad to help Shawn.

But adding the 0-24 constraint, this is a bit shorter:

=AND(A1=0,A1<=24,MOD(A1,0.25)=0)

--ron
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
quarter Kent Prokopy[_2_] Excel Worksheet Functions 4 March 24th 09 01:47 PM
Units Produced / (finish time minus start time)=Units Per Hr Gary A Excel Worksheet Functions 1 February 10th 09 01:35 AM
every quarter Roger Govier Excel Programming 4 January 16th 07 01:23 AM
every quarter Bob Phillips Excel Programming 0 January 15th 07 12:53 PM
units Mindy Excel Discussion (Misc queries) 3 April 20th 05 05:13 PM


All times are GMT +1. The time now is 10:15 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"