+ Reply to Thread
Results 1 to 3 of 3

Help with Data Validation

  1. #1
    Registered User
    Join Date
    03-20-2020
    Location
    Minnesota, USA
    MS-Off Ver
    Office 365
    Posts
    11

    Help with Data Validation

    Hi I'm trying to see if this is doable. Here is my query

    Column A , B , C
    Column A & B take user input
    Column C is constant with a numeric value
    I'd like to perform a data validation so that the column A & B won't take a numeric value greater than the value in column C and if the values from both A & B put together must not be greater than column C

    A = 0
    B = 3
    C = 4
    The above scenario is valid

    A=2
    B=3
    C=4
    This scenario is invalid because the sum is greater than C.


    Any thoughts would be helpful.

    Thanks

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Help with Data Validation

    Perhaps, a custom validation rule, applied to A:B, of:

    =COUNT(A1)/(SUM($A1:$B1)<=$C1)

    to test, highlight both A1:B1 (selecting from A1 to B1) then insert the above rule.

  3. #3
    Registered User
    Join Date
    03-20-2020
    Location
    Minnesota, USA
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Help with Data Validation

    thank you so much, this works like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  2. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  3. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  4. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  5. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  6. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM

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