+ Reply to Thread
Results 1 to 5 of 5

Data Validation based on value of another cell + length of input

  1. #1
    Registered User
    Join Date
    01-27-2014
    Location
    Brisbane
    MS-Off Ver
    Excel for Office 365
    Posts
    30

    Data Validation based on value of another cell + length of input

    Hi All,

    Thanks in advance for your help. I am trying to achieve the following:

    In the cells in column K if user inputs "Amadeus" then the value of what they enter in cells in Column L must be = to 9 characters. A stop error would then occur if len < or > than 9 . If the cells in column K does not = "Amadeus" then the text length in column L can be any length. Hope this is clear.

    Thanks,

    Peter

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Data Validation based on value of another cell + length of input

    Hi
    if I'm interpreting your question correctly try this macro
    it will search for instances of "amadeus" in column K and return a message box if the length of the contents in the adjacent cell in column L is not 9. If you select "yes" it will take you to that instance of "amadeus" in column k

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-27-2014
    Location
    Brisbane
    MS-Off Ver
    Excel for Office 365
    Posts
    30

    Re: Data Validation based on value of another cell + length of input

    Hi NickyC. Thanks for your reply. I was hoping to use the Data Validation functionality to avoid using a macro.

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Data Validation based on value of another cell + length of input

    hi
    try this formula in the data validation setting:


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-27-2014
    Location
    Brisbane
    MS-Off Ver
    Excel for Office 365
    Posts
    30

    Re: Data Validation based on value of another cell + length of input

    Thanks NickyC. Works perfectly!

+ 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. Validation on input based on another cell
    By cultofcargo in forum Excel General
    Replies: 17
    Last Post: 10-27-2014, 08:50 AM
  2. Replies: 7
    Last Post: 01-25-2014, 07:53 AM
  3. Replies: 0
    Last Post: 10-03-2013, 02:02 AM
  4. [SOLVED] Data Validation format length based on values in another cell
    By rini11 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-16-2013, 11:18 AM
  5. Using Data Validation Lists based on input of another Cell
    By jlundberg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-02-2013, 11:29 AM
  6. Data from Input Box overrides cell input validation
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-01-2007, 02:29 PM
  7. Replies: 2
    Last Post: 01-25-2005, 04:06 AM

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