• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Custom Data Validation Formula

Cammandk

Member
I am using this formula successfully in a cell that the user enters a £ value.
They can't enter a value in Q16 without selecting from a dropdown in F16 (F,O,I,E,B,P,S,R) and then a date in G16.

=AND(NOT(ISBLANK($F16)),NOT(ISBLANK($G16)))

I need to enhance this. I need the value entry in Q16 not to be allowed based on the following
If F16 = F,O,E,R - F16/G16 need to be completed
If F16 = I,B,S - F16/G16/P16 need to be completed

Thanks
 
Hi, Cammandk!

Try this:
=AND(NOT(ISBLANK($F16)),NOT(ISBLANK($G16)),OR(($F16="F",$F16="O",$F16="E",$F16="R"),NOT(ISBLANK($P16))))

Regards!
 
Hi David ,

Can you try this ?

=OR(AND(ISNUMBER(SEARCH(F16,"FOER")),NOT(ISBLANK(F16)),NOT(ISBLANK(G16))),AND(ISNUMBER(SEARCH(F16,"IBS")),NOT(ISBLANK(F16)),NOT(ISBLANK(G16)),NOT(ISBLANK(P16))))

Narayan
 
Back
Top