Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Data Validation...A Multiple of a number

How do you set the data validation formula to limit entry to a multiple
of a number. My specific need is to have users enter only numbers that
are multiples of 50. I've been using a drop down list but the range is
getting really long now and it seems to me there must be an easier way
than a long drop down box. Anyone know how to create a formula from/in
the data validation options?
Dean

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data Validation...A Multiple of a number


In the validation criteria, select Custom from the Allow list, and
enter

=MOD(A1,50)=0

in the Formula box (change A1 to whichever cell you're putting the
validation on). If a user tries to enter a value which isn't a multiple
of 50 they'll get an error.

Hope that helps
Col


--
colofnature
------------------------------------------------------------------------
colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356
View this thread: http://www.excelforum.com/showthread...hreadid=558426

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Data Validation...A Multiple of a number

Dean,

Use Data / Validation... and choose "Custom" and use the formula:

=INT(A1/50)=A1/50

Replace the A1 with the current active cell's address.

HTH,
Bernie
MS Excel MVP


"Dean" wrote in message
oups.com...
How do you set the data validation formula to limit entry to a multiple
of a number. My specific need is to have users enter only numbers that
are multiples of 50. I've been using a drop down list but the range is
getting really long now and it seems to me there must be an easier way
than a long drop down box. Anyone know how to create a formula from/in
the data validation options?
Dean



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Data Validation...A Multiple of a number

Thank you! Perfect. All set.
Dean



colofnature wrote:
In the validation criteria, select Custom from the Allow list, and
enter

=MOD(A1,50)=0

in the Formula box (change A1 to whichever cell you're putting the
validation on). If a user tries to enter a value which isn't a multiple
of 50 they'll get an error.

Hope that helps
Col


--
colofnature
------------------------------------------------------------------------
colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356
View this thread: http://www.excelforum.com/showthread...hreadid=558426


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
multiple data validation Fiver Excel Discussion (Misc queries) 3 July 26th 09 04:41 PM
Multiple Data Validation JStiehl Excel Discussion (Misc queries) 7 July 1st 09 04:50 PM
multiple data validation aditya Excel Discussion (Misc queries) 3 May 27th 09 01:31 PM
Multiple Data Validation VoxBox-Richard Excel Worksheet Functions 3 July 29th 08 01:19 PM
Multiple Data Validation betany70 Excel Discussion (Misc queries) 2 July 24th 07 09:42 PM


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