+ Reply to Thread
Results 1 to 18 of 18

Setting Restrictions On Cell Values

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Setting Restrictions On Cell Values

    Hello
    Apologies for the unhelpful title but the question is a bit long winded. Is it possible to set rules or create a formula on a range of cells that will do the following:

    1-Limit the total amount entered in any cell to a maximum of 15.
    2-Ensure that out of all the figures entered 1 MUST be below 9.
    3-Ensure that out of all the figures entered 1 MUST be over 11.

    Basically we are looking at how to improve our peer review process where we get students to score their team mates at the end of the year. We have used Google Polls previously but it is limited in what it can do, so I am looking into alternatives. I can do number 1 on the list but combining it with the other 2 I have no idea about.
    Any help would be great.
    Thanks
    Last edited by HurstUOB; 07-07-2015 at 05:42 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Is it possible... Excel Formula

    Are the numbers always integers? This may need some modification, depending on your answer.... Done using Data Validation/Number
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Is it possible... Excel Formula

    Can you please post a sample sheet showing expected results.

  4. #4
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Is it possible... Excel Formula

    Yes they are always whole numbers. The rules need to be set up together for the same column.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Is it possible... Excel Formula

    Hi, HurstUOB,

    an extrremely poor thread title to my opinion. You might like to change it according to Forum Rule #1.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Is it possible... Excel Formula

    My interpretation was that if 10 numbers are entered in a range that one cell (undefined) must be <9 and similarly for > 11 (???) So the 15 would apply to all cells but rules 2 & 3 have to be "evaluated".

  7. #7
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Is it possible... Excel Formula

    Here is what I have so far. I have set the maximum rule up but nothing else.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Is it possible... Excel Formula

    Apologies, I wasn't sure what to title it.
    Last edited by HurstUOB; 07-07-2015 at 05:40 AM.

  9. #9
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Is it possible... Excel Formula

    Quote Originally Posted by JohnTopley View Post
    My interpretation was that if 10 numbers are entered in a range that one cell (undefined) must be <9 and similarly for > 11 (???) So the 15 would apply to all cells but rules 2 & 3 have to be "evaluated".
    That's correct John.

  10. #10
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Is it possible... Excel Formula

    Quote Originally Posted by Fotis1991 View Post
    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification.

    All participants:
    Please do not post a reply in a thread where a moderator OR a Senior Member(post#5)has requested an action that has not yet been complied with e.g Title change or Code tags...etc. Thanks.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    I've changed it. Is it still not acceptable?

  11. #11
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Setting Restrictions On Cell Values

    Now that the moderation request is fulfilled,

    Try the following formula in "Data Validation"

    =AND(MIN($B$2:$B$6)<9,MAX($B$2:$B$6)>11,AND($B$2<=15,$B$3<=15,$B$4<=15,$B$5<=15,$B$6<=15))
    Attached Images Attached Images
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Setting Restrictions On Cell Values

    Quote Originally Posted by cbatrody View Post
    Now that the moderation request is fulfilled,

    Try the following formula in "Data Validation"

    =AND(MIN($B$2:$B$6)<9,MAX($B$2:$B$6)>11,AND($B$2<=15,$B$3<=15,$B$4<=15,$B$5<=15,$B$6<=15))
    That's fantastic! Thank you for the help. Sorry for any inconvenience caused with the title, I don't go on forums very much.

  13. #13
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Setting Restrictions On Cell Values

    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

    Also, you can directly thank those who have helped you by clicking on the small * (star) icon located in the lower left corner of a post that you have found to be helpful.

  14. #14
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Setting Restrictions On Cell Values

    Quote Originally Posted by cbatrody View Post
    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

    Also, you can directly thank those who have helped you by clicking on the small * (star) icon located in the lower left corner of a post that you have found to be helpful.
    Will do. I think I did that with your post already.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Setting Restrictions On Cell Values

    I tried this and I could only enter a minimum value of 12 in cell A2: is this correct?

  16. #16
    Registered User
    Join Date
    07-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    18

    Re: Setting Restrictions On Cell Values

    Quote Originally Posted by JohnTopley View Post
    I tried this and I could only enter a minimum value of 12 in cell A2: is this correct?
    Yes I noticed that. I don't know if there is anyway around that. I will just have to inform the students that they must award a score of +11 first.

  17. #17
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Setting Restrictions On Cell Values

    Quote Originally Posted by JohnTopley View Post
    I tried this and I could only enter a minimum value of 12 in cell A2: is this correct?
    Did you see the attachment I posted in #11? You need to clear the cells (B2:B6) first before entering the new set of numbers.
    Attached Images Attached Images

  18. #18
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Setting Restrictions On Cell Values

    Please clear the cells B2:B6 first before entering the new set of numbers.
    Last edited by cbatrody; 07-07-2015 at 01:31 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 03-21-2014, 11:43 AM
  2. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  3. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  4. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  5. [SOLVED] Excel 2002 formula displayed not value formula option not checked
    By Dean in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2006, 10:35 AM

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