ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Data Validation (Specific Decimals or Whole #) (https://www.excelbanter.com/excel-worksheet-functions/34077-data-validation-specific-decimals-whole.html)

testes

Data Validation (Specific Decimals or Whole #)
 

is it possible to set up a data validation where the only numbers that
someone can enter into a cell are either whole numbers or end in ".5"
numbers can be 0, 1, 1.5, 5000.5, etc.... basically any decimals
other than .5 or .0 are not wanted. can anyone help out?


--
testes
------------------------------------------------------------------------
testes's Profile: http://www.excelforum.com/member.php...o&userid=24965
View this thread: http://www.excelforum.com/showthread...hreadid=384925


Ron Coderre


Using Cell A1, try this:

DataData Validation
Allow: Custom
Formula: =MOD(A1,0.5)=0

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=384925


testes


yes that works perfect. thank you very much.


--
testes
------------------------------------------------------------------------
testes's Profile: http://www.excelforum.com/member.php...o&userid=24965
View this thread: http://www.excelforum.com/showthread...hreadid=384925


testes


one last thing, is it possible to make this formula a multi- validation
formula? where the two conditions are that it's either in .0 or .5
format and that the number doesn't exceed a certain number in another
cell?


--
testes
------------------------------------------------------------------------
testes's Profile: http://www.excelforum.com/member.php...o&userid=24965
View this thread: http://www.excelforum.com/showthread...hreadid=384925


Ron Coderre


Again using Cell A1, try this:

DataData Validation
Allow: Custom
Formula: =AND((MOD(A1,0.5)=0),(A1<=SomeCell))

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=384925



All times are GMT +1. The time now is 11:00 PM.

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