+ Reply to Thread
Results 1 to 5 of 5

Data validation / warning alert

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Data validation / warning alert

    I need to know how to add some data validation to a table. i have a copy of a test spreadsheet below. The idea is that this is sent out to staff. They enter their scores and employee level and then send it back.

    If there employee level A there stats need to equal 100 if not an error needs to flag up. If there employee level B or C there score needs to add up to 80 or an error should flag.

    Any idea?

    Many thanks,

    Chemist
    Attached Files Attached Files
    Last edited by Chemistification; 09-01-2010 at 11:56 AM.

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

    Re: Data validation / warning alert

    You can't have data validation on a cell with a formula... the formula result does not trigger a flag... flags are triggered on manual entry cells.

    You can either change Total formulas to something like:

    =IF(SUM(B3:B7)<>100,"error",SUM(B3:B7)) where error will populate the cell if all cells don't sum to 100.

    Or you can apply data validation to the last cell in the summation range, to say if sum is not equal to 100 it would give error after typing into that cell..

    So you would select B20 and invoke Data Validation, then select Custom and enter formula"

    =SUM(B3:B7)=100

    and so on.
    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 Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data validation / warning alert

    Because B8 is a calculated cell, you can't add Data Val to that cell. Several ways to do this. We could do a conditional format on B2:B7 or we can choose another cell (i.e. C8) and write a formula there. I chose the second. Let me know if you want the first.
    In C8, I put
    =IF(AND(B1="A",B8<100),"Total should be 100",IF(AND(B8>0,B8<80),"Total should be > 80",""))
    Is this what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    08-19-2009
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Data validation / warning alert

    Ah ok thanks to you both. ChemistB this is what i a was after. Thanks loads.

    Chemist
    Last edited by Chemistification; 09-01-2010 at 11:55 AM. Reason: Solved

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

    Re: Data validation / warning alert

    I should pay more attention... it didn't really click that you said you had the one table and that there was a drop down at the top...

+ 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