+ Reply to Thread
Results 1 to 5 of 5

Validation on a calculated cell

  1. #1
    Forum Contributor
    Join Date
    12-13-2007
    Posts
    138

    Validation on a calculated cell

    I am trying to input data validation on a calculated field. The calculated field (sum of 10 fields above it) must not total over 100%. I have used the following in the data validation menu:

    Allow: whole number

    Data: less than or equal to 1

    This doesnt seem to be working when I input values of a total greater to 100 from its input cells however, it does return an error if I manually input a number over 100%, then it gives me an error message.

    Edit - sample sheet attached.
    Last edited by FM1; 01-27-2010 at 08:17 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Validation on a calculated cell

    Hi,

    you need to put the data validation on the input fields, not the result. Data validation will never evaluate a calculated cell, it only validates manual data entry, so that's where you want your validation to be.

    For both input fields, i.e. E2 and E6, enter this custom data validation formula

    =$E$2+$E$6<=1

    hth

  3. #3
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Validation on a calculated cell

    Use Data Validation in cells E2 and E6 with the formula:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-13-2007
    Posts
    138

    Re: Validation on a calculated cell

    That has worked a charm.

    Thanks very much for your help.
    Last edited by teylyn; 01-27-2010 at 08:21 AM. Reason: removed quotes

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Validation on a calculated cell

    please don't quote whole posts (it's just clutter), especially not two of them, and especially if all you want to say is "thanks". We're bright enough to get that without the quote.

    Appreciate the thanks.

+ 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