Data Validation

Jumanarimawi

New Member
Joined
Jan 27, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Dears,

I'm new to this forum, and I have query

I have a request from client (long entery sheet) , one of the columns its the first one in the sheet a cliam number , the condition is to allow the user to duplicate the value only once , I tried to use this formula in the data validation custom bar
=COUNTIF($A$2:$A$2922,A2)=2 , but this doesnt allow to enter any value, im out of solutions , please help me guys
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Welcome to the Board!

Maybe this is what you need:
=COUNTIF($A$2:$A$2922,A2)<=2
 
Upvote 0
You are welcome.

I hope it makes sense why you want "<=2" instead of exactly equal to 2.
 
Upvote 0
By saying "=2", you are saying that it the count HAS to be EXACTLY 2. You cannot have 1. So if you tried to add a new one, it would fail, because 1 is not allowed (and you cannot jump from 0 to 2 in one step). So, you want to say it can be 1 or 2 (or "<=2").

Make sense now?
 
Upvote 0
By saying "=2", you are saying that it the count HAS to be EXACTLY 2. You cannot have 1. So if you tried to add a new one, it would fail, because 1 is not allowed (and you cannot jump from 0 to 2 in one step). So, you want to say it can be 1 or 2 (or "<=2").

Make sense now?
Crystal cleAR :)
 
Upvote 0

Forum statistics

Threads
1,215,168
Messages
6,123,402
Members
449,098
Latest member
ArturS75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top