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

How can I restrict a cell so that it will only accept whole numbers between 1
and 24, or a decimal number between .25 and 23.75? The decimal answers can
only be .25, .5 or .75?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default rounding error

Shawn,

in the data validation select 'custom' and in the formula type
=AND(4*A10, 4*A1<=96,4*A1=INT(4*A1))

This formula applies to cell A1. You will need to extrapolate for other
cells.

Good luck
Fred

"Shawn" wrote in message
...
How can I restrict a cell so that it will only accept whole numbers
between 1
and 24, or a decimal number between .25 and 23.75? The decimal answers
can
only be .25, .5 or .75?


--
Thanks
Shawn



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
rounding error pkeegs Excel Discussion (Misc queries) 2 January 13th 10 07:53 AM
rounding error? Steve Excel Discussion (Misc queries) 5 June 1st 08 02:58 PM
ROUNDing on a MAC - conversion error Lokai Excel Programming 2 June 30th 05 10:34 PM
Is this rounding error? Ron Rosenfeld Excel Programming 3 September 13th 04 05:56 PM
Rounding Error Matthew W Excel Programming 5 April 19th 04 10:11 AM


All times are GMT +1. The time now is 07:32 AM.

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

About Us

"It's about Microsoft Excel"