+ Reply to Thread
Results 1 to 4 of 4

Is it possible to lock a subtotal?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-17-2006
    Posts
    14

    Is it possible to lock a subtotal?

    My company is doing projections for 2007 and they want all our revenue streams to add up to, hypothetically, $100. Is there a way to lock $100 or less as the total, thus forcing people to subtract from column A before adding to column B?

    Example:

    A B C
    10 20 70

    To add 5 to column A, the user would need to subtract five from B or C.


    I'd like this to be a stubborn lock (not just a polite TRUE/FALSE basic if statement).

    Is the answer going to be excruciatingly complex?

    Thanks,


    M

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by mattlazarus
    My company is doing projections for 2007 and they want all our revenue streams to add up to, hypothetically, $100. Is there a way to lock $100 or less as the total, thus forcing people to subtract from column A before adding to column B?

    Example:

    A B C
    10 20 70

    To add 5 to column A, the user would need to subtract five from B or C.


    I'd like this to be a stubborn lock (not just a polite TRUE/FALSE basic if statement).

    Is the answer going to be excruciatingly complex?

    Thanks,


    M
    Hi,

    If you put on a 'Stubborn Lock' how will the user get to reduce one cell to increase another?

    Select the cells that are to total 100, and Format, Conditional Format, select Formula, =AND(SUM(E$4:E$7)<>100,SUM(E$4:E$7)>0)
    select your colour and OK

    Use the range applicable to your case. (for E$3:E$7)

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    I agree with Bryan, any attempt to create the kind of "lock" you are describing will surely cause a circular reference.

    Bryans solution just highlights "undesirable" totals in a differnt format.

    Assuming your totals are in Column D, an alternative might be to display a message in column E; for example:

    Cell E2 : IF(D2<>100,"Totals MUST be 100","")

    Mark.

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Mark@Work
    I agree with Bryan, any attempt to create the kind of "lock" you are describing will surely cause a circular reference.

    Bryans solution just highlights "undesirable" totals in a differnt format.

    Assuming your totals are in Column D, an alternative might be to display a message in column E; for example:

    Cell E2 : IF(D2<>100,"Totals MUST be 100","")

    Mark.
    Hi Mark,

    Of course, there is always the obvious (as stated by me moons ago on another thread)

    C = D - A - B

    so what you put in for A & B determines C, and it always adds up to the 100 in D (C and D are Protected)

    The drawback here is that C becomes a 'bucket' with not enough thought to it's contents, - I still prefer the employee who can 'front up' to the boss with bright red blotches on their budgets.


    ---

+ 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