Forum Discussion

bkunse's avatar
bkunse
Copper Contributor
Feb 09, 2023

limit the inserts of certain word in one column

Hi.

 

Can I limit the inserts of certain word in one column?

I am trying to limit inserts in certain column. For example the word "LD" can be written in each column only 5 times and not more. Similar to data validation.

Now I am using COUNTIF formula for counting, but it dosen´t prevent you to insert the word more than 5 times. 

 

Than you for your help.

5 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    bkunse See if you can replicate the example in the picture below.

    The custom data validation used here is:

    =COUNTIF($B$3:$B$20,"LD")<=5

     

    Enter LD one more time in the applied range and you'll get an error message.

     

     

     

Resources