+ Reply to Thread
Results 1 to 3 of 3

Data Validation Custom with Formula

  1. #1
    Registered User
    Join Date
    08-28-2007
    Posts
    5

    Data Validation Custom with Formula

    I am working on a vacation planning tool that sets an accrual cap (AA8) from a hidden worksheet table based on years of service (cell F8) entered by the employee. The fields involved in this are:
    Projected Yearend Service in cell W8 = F8+1
    Annual Vacation Accrual in cell Z8 is =VLOOKUP(W8,Table.VacationAccruals,2)
    Vacation Accrual Cap = Y8+10 (because employees can have a maximum of their annual accrual plus 10 days)

    Then the employee enters the hours of vacation that they expect to have remaining at the end of the year (cell F16). I need to put a data validation on cell F16 that it is NOT to exceed the Vacation Accrual Cap.

    I set up a data validation using Custom Settings and in the Formula field entered <AA8, and it causes any amount that I enter to be an error,whether valid or not. I also tried <Z8+10, same result. It just isn't liking my references to a cell that has a formula in it.

    Can someone help?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try selecting Whole Number or Decimal (depending on your preference) from the Allow menu... and then select "less than or equal to" from the Data menu and enter =AA8 in the Maximum field.
    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
    Registered User
    Join Date
    08-28-2007
    Posts
    5

    It worked!

    I thought you could only use Custom when referring to a cell with a formula, but your approach works perfectly.

    Thank you very much,
    b

+ 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