+ Reply to Thread
Results 1 to 4 of 4

Restricting entry to cells dependent on sum of others? How!!

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Scotland
    MS-Off Ver
    excel 2007
    Posts
    12

    Restricting entry to cells dependent on sum of others? How!!

    I have cells C5 to C10 - people can only enter a '1' in each cell

    Their sum shows in C11

    I want only 2 of the cells (any of them C5,6,7,8,9 OR 10) to have '1' entered in, so the sum in C11 is no more than 2.

    How can I put a restriction on them so that once C11 equals 2 that no more entry is allowed?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Restricting entry to cells dependent on sum of others? How!!

    Validate C5

    Data Validation
    settings
    custom
    =AND(OR(C5=0,C5=1),$C$11<=2)

    Copy to other cells.

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Scotland
    MS-Off Ver
    excel 2007
    Posts
    12

    Re: Restricting entry to cells dependent on sum of others? How!!

    Thanks so much - made my life much easier!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Restricting entry to cells dependent on sum of others? How!!

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Restricting entry into multiple cells
    By maryfay in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2012, 07:10 AM
  2. Restricting data entry to 1 of 3 cells
    By Gunnjg in forum Excel General
    Replies: 2
    Last Post: 08-21-2008, 04:23 PM
  3. [SOLVED] Restricting entry in B1 on the basis of entry in A1
    By Stilla in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-03-2005, 05:20 PM
  4. [SOLVED] Re: Restricting entry in B1 on the basis of entry in A1
    By Biff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-02-2005, 11:45 PM
  5. [SOLVED] Restricting data entry
    By JT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 04:05 PM

Tags for this Thread

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