+ Reply to Thread
Results 1 to 8 of 8

set a limit on value of a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question set a limit on value of a cell

    I need to set a limit on the value of the cell that adds up cells B14:B23 so if the value of the cell is equal to or greater than 16 a error message will appear telling the person the value of the cell is to high.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: set a limit on value of a cell

    =if(Sum(B14:B23)>16,"Value to High","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: set a limit on value of a cell

    Here's a good description on data validation
    http://support.microsoft.com/kb/211485

  4. #4
    Registered User
    Join Date
    06-25-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: set a limit on value of a cell

    that formula works but i need a error message like when you break a data validation

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: set a limit on value of a cell

    So you will be entering a number physically in a cell and you don't want to allow it if the sum of a range is more that 16?

    Data Validation

    Allow: Custom

    =Sum(B14:B23)<=16

    Then go to Error message tab and enter the error...

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: set a limit on value of a cell

    You won't be able to put the validation on the cell with the sum, try using validation on the range B14:B23

    Select that range and then use this custom formula

    =SUM(B$14:B$23)<16

    Note the $ signs
    Audere est facere

  7. #7
    Registered User
    Join Date
    06-25-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Re: set a limit on value of a cell

    i simplified it down in my original post. i have uploaded the document i am trying to limit. on sheet 1 there in a picture with different health and safty problems on. each time they click a correct problem they are award a point. but the problem is they can click the picture unlimited times. i need a way to limit the amount of clicks to 15. i have set up macros to count the amount of times they clcik the picture but i need to limit it to 15. on sheet 1 is the picture. sheet 2 is used for calulations on sheet 2 cell B9 is the amount they have clicked the picure i am trying to limit that number so it can not exceed 15. sheet 3 is the summary sheet
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-25-2010
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Re: set a limit on value of a cell

    i simplified it down in my original post. i have uploaded the document i am trying to limit. on sheet 1 there in a picture with different health and safty problems on. each time they click a correct problem they are award a point. but the problem is they can click the picture unlimited times. i need a way to limit the amount of clicks to 15. i have set up macros to count the amount of times they clcik the picture but i need to limit it to 15. on sheet 1 is the picture. sheet 2 is used for calulations on sheet 2 cell B9 is the amiunt they have clciked the picure i am trying to limit that number so it can not exceed 15.

+ 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