Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
testes
 
Posts: n/a
Default 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

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default


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

  #3   Report Post  
testes
 
Posts: n/a
Default


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

  #4   Report Post  
testes
 
Posts: n/a
Default


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

  #5   Report Post  
Ron Coderre
 
Posts: n/a
Default


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

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
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
Error Message with Data Validation Chet Hurd Excel Discussion (Misc queries) 2 June 9th 05 08:44 PM
#VALUE# error with Data Validation KG Excel Discussion (Misc queries) 1 May 28th 05 05:31 AM
Pivot table - printing specific data Doug Excel Discussion (Misc queries) 1 April 24th 05 08:29 PM
Data Validation peterm Excel Discussion (Misc queries) 15 March 3rd 05 01:26 PM


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