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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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