+ Reply to Thread
Results 1 to 3 of 3

Data Validation Formula not working

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    Oldbury, UK
    MS-Off Ver
    2016
    Posts
    17

    Data Validation Formula not working

    Hi all,

    I have a Data Validation formula here that I believe should be working:

    =OR(NOT(OR(LEFT(R8C3,2)="P-",LEFT(R8C3,2)="S-",LEFT(R8C3,2)="C-")),(COUNTIF(Clients1,RIGHT(R8C3,6))+COUNTIF(Clients2,RIGHT(R8C3,6))+COUNTIF(Clients3,RIGHT(R8C3,6)))>=1)


    To try and explain what I am doing here, it is essentially a two stage variation on cells in the range R3C8:R12C22
    • Stage 1: Check if the Cell begins with "P-", "S-" or "C-"
    • If it doesn't, pass the Validation
    • If it does, Look at the Right 6 Characters of the cell and check if these appear anywhere in the three ranges Client1, Client2 or Client3
    • if it does, pass the Validation
    • Otherwise, Fail the Validation

    I have a separate cell calculating this formula to give the correct "True" and "False" results, but when I place I it in the Data Validation settings, it doesn't work. Can any help me with why that is the case?

    Thanks for your time,

    Rich

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Data Validation Formula not working

    Attach the workbook, please, or a sample one showing the issue.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-12-2013
    Location
    Oldbury, UK
    MS-Off Ver
    2016
    Posts
    17

    Re: Data Validation Formula not working

    Hi,

    I've attached a version of the file with all of the personal information stripped out. That said, the validation should still work based on the validation in R3C8:R12C22.

    Thanks for your time

    Rich
    Attached Files Attached Files

+ 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] Ghost Formula in Data Validation [After Closed File Not Working]
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-18-2017, 06:25 PM
  2. 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
  3. Replies: 3
    Last Post: 07-29-2017, 04:32 AM
  4. Data Validation not working,for excel validation Please Help!!!
    By angelmama in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-09-2014, 10:06 AM
  5. data validation not working if formula triggered?
    By wilcoremmers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2014, 07:09 PM
  6. excel formula working on a cell which is having data in a data validation cell
    By sujithy007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 04:05 AM
  7. validation rules not working when someone copy paste data on validation cell
    By jthakrar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2010, 03:36 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