+ Reply to Thread
Results 1 to 5 of 5

How to get a cell to error if the wrong figue is entered

  1. #1
    Eintsein_mc2
    Guest

    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. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    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.


    Quote Originally Posted by Eintsein_mc2
    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
    Last edited by Bryan Hessey; 09-13-2005 at 09:29 PM.

  3. #3
    Anne Troy
    Guest

    Re: How to get a cell to error if the wrong figue is entered

    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" <[email protected]> wrote in message
    news:[email protected]...
    >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. #4
    Rowan
    Guest

    Re: How to get a cell to error if the wrong figue is entered

    You can use data validation.

    Select the cell where you want to restrict input, A1 in my example. From
    the menus Data>Validation. 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
    >


  5. #5
    Eintsein_mc2
    Guest

    Re: How to get a cell to error if the wrong figue is entered

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1