ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   rounding error (https://www.excelbanter.com/excel-programming/339199-rounding-error.html)

Shawn

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

Fred[_22_]

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





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com