Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Eintsein_mc2
 
Posts: n/a
Default How to get a cell to error if the wrong figue is entered

I have a worksheet that is a quote form for quoting on bricks. Bricks
are only avaliable in lots of 66. So if my sales people are giving a
quote say for 3000 bricks this would not be possiable because they only
come in lots of 66, the figue they would have to enter would be 3036. I
was wondering if there is a way to get the cell to show an error if the
figue entered dose not work with multiables of 66. Thanks

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Why not just have them enter the number of lots instead? Then have your
formula multiply it by 66.
************
Anne Troy
www.OfficeArticles.com

"Eintsein_mc2" wrote in message
oups.com...
I have a worksheet that is a quote form for quoting on bricks. Bricks
are only avaliable in lots of 66. So if my sales people are giving a
quote say for 3000 bricks this would not be possiable because they only
come in lots of 66, the figue they would have to enter would be 3036. I
was wondering if there is a way to get the cell to show an error if the
figue entered dose not work with multiables of 66. Thanks



  #3   Report Post  
Rowan
 
Posts: n/a
Default

You can use data validation.

Select the cell where you want to restrict input, A1 in my example. From
the menus DataValidation. Select Custom in the Allow dropdown. In the
formula box enter "=MOD(A1,66)=0" (without quotes - change cell
reference to match selected cell).

On the Error Alert tab you can set your own error message eg must be
multiple of 66.

Hope this helps
Rowan

Eintsein_mc2 wrote:
I have a worksheet that is a quote form for quoting on bricks. Bricks
are only avaliable in lots of 66. So if my sales people are giving a
quote say for 3000 bricks this would not be possiable because they only
come in lots of 66, the figue they would have to enter would be 3036. I
was wondering if there is a way to get the cell to show an error if the
figue entered dose not work with multiables of 66. Thanks

  #4   Report Post  
Bryan Hessey
 
Posts: n/a
Default


The easy way would be to use another (adjacent) cell to test the figure,
such as in B1 put

=IF(A1-(66*INT(A1/66))<0,"Qty not divisible by 66 error","")

or

=IF(MOD(A1,66)<0,"Qty not divisible by 66 error","")


you can set the Font for B1 to be red & bold etc.


Eintsein_mc2 Wrote:
I have a worksheet that is a quote form for quoting on bricks. Bricks
are only avaliable in lots of 66. So if my sales people are giving a
quote say for 3000 bricks this would not be possiable because they
only
come in lots of 66, the figue they would have to enter would be 3036.
I
was wondering if there is a way to get the cell to show an error if
the
figue entered dose not work with multiables of 66. Thanks



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=467361

  #5   Report Post  
Eintsein_mc2
 
Posts: n/a
Default

Thanks for that Guys, it works perfect, exactly what I needed.



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
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
cell assumes wrong date julie from Seattle Setting up and Configuration of Excel 1 November 30th 04 07:51 PM


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