+ Reply to Thread
Results 1 to 3 of 3

Data Validation - Formula Creation

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    DC
    MS-Off Ver
    Excel 2003
    Posts
    4

    Data Validation - Formula Creation

    I would like the individual cells of C1 and D1 to allow me to input values up to 100.

    The tricky part is that if D1 equals 100 I would like C1 to be less than 100 and vice versa, if C1 equals 100 then D1 should equal less than 100.

    Ex. C1 = 100 & D1 = 10

    This should never happen: C1 = 100 & D1 = 100

    I would also like an error box to show when either of the cell values exceed 100.

    I hope this makes sense.
    Last edited by Tweetie; 02-12-2009 at 03:43 PM.

  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 - Formula Creation

    Try this Custom formula in Data Validation for C1:

    =IF(C2=100,IF(C1<100,TRUE,FALSE),IF(C2<100,IF(C1<=100,TRUE,FALSE)))

    and this one for C2:

    =IF(C1=100,IF(C2<100,TRUE,FALSE),IF(C1<100,IF(C2<=100,TRUE,FALSE)))

    You can create an error message within the Error Alert tab of Data Validation Window
    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data Validation - Formula Creation

    I think you can also use these simpler formulas instead

    =OR((C2=100)*(C1<100),(C2<100)*(C1<=100))
    and

    =OR((C1=100)*(C2<100),(C1<100)*(C2<=100))

+ 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