Forum Discussion

CSPENNINE's avatar
CSPENNINE
Copper Contributor
Jan 27, 2021

Data Validation Formula to limit cell input range based on value in another cell

  Hi,   This should be simple, but I cannot seem to find the same question asked before, and all solutions I have tried have failed.   If I have cell A1 and it contains any text (other than "LIM...
  • HansVogelaar's avatar
    Jan 27, 2021

    CSPENNINE 

    Select cell B1.

    On the Data tab of the ribbon, click Data Validation.

    Select Custom from the Allow dropdown.

    Enter the following in the Formula box:

     

    =OR(A1<>"LIMIT",AND(B1>=0,B1<=10))

     

    If you wish, enter appropriate messages in the Input Message and Error Alert tabs.

    Click OK.

Resources