CountIFS in data Validation

Egiha64

New Member
Joined
Apr 15, 2020
Messages
13
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Trying to check for duplicates in multiple columns using data validation but its not functioning correctly.
Formula:
=CountIFS($A$2:$A$6000, A2,$B$2:$B$6000,B2,$C$2:$C$6000,C2)=1

When I try and enter unique data it gives error code I set up.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the Board!

Are you applying this across columns A, B, and C?
If so, you need to lock the column references of the criteria arguments, like this:
=CountIFS($A$2:$A$6000,$A2,$B$2:$B$6000,$B2,$C$2:$C$6000,$C2)=1
 
Upvote 0
Thanks for the welcome Joe! It still didn't work, but I've attached some detail.

The Columns are $X for BV1 S/N and $AM for BV2 S/N but it could be one or multiple column references.
Goal: Check for duplicate Serial Number in both columns when I enter a new value in either column.

So far, the check works only in the first column in the formula, in this case the $X column. If I enter a duplicate Serial Number in $X that already exist in the other ($AM) column, it allows an entry and does not trigger the error message.

Let me know if you understand me dilemma. I'll try and explain better.

BV1 S/NBV1 Device IDBV1 PresentBV2 Pre-Wire Install StatusBV2 S/N
205284BMV015961Full
206507BMV009001Full
205456BMV026971Full
206188BMV010021Full
206057BMV015771Full
 
Upvote 0
Since you are not really dealing with columns A, B, and C, please do the following:
1. Post the actual formula you are using
2. Let us know the exact range you are applying that data validation formula to (I want the EXACT cell address of the range)
3. Let us know what columns you are showing us in your previous post (column letters for each one)
 
Upvote 0
Formula I'm using: =COUNTIFS($X$2:$X$6018,$X2,$AM$2:$AM$6018,$AM2,$BB$2:$BB$6018,$BB2)=1
Range= X2:X6018, AM2:AM6018, BB2:BB6018
X Column is BV1 S/N, AM Column is BV2 S/N and BB column is BV3 S/N. BB column not shown in previous post.
 
Upvote 0
BB column not shown in previous post.
For the example you posted earlier, can you post a sample of the data in column BB looks like?
I would like to reconstruct the sheet layout exactly like yours, so I can test your exact conditions on my side.
 
Upvote 0
Here is a sample:

The rest of the columns have other data like P/N, and dates. But I really need the data validation on the serial numbers to prevent duplication on data entry.
So, if I enter a new serial in either column it would validate against the others.

X​
AM​
BB​
BV1 S/NBV2 S/NBV3 S/N
205284206201311555
206507208454554889
205456206211321255
206188​
274555274123
206057212444208456
245622367891
589668
 
Upvote 0
OK, so based on the example you just posted, can you tell me of a new entry that doesn't work the way you expect?
When I add a new combination of three values like that, it works just fine.
If I duplicate that exact combination of three values again, then I get the error message.
So it seems to be working to me.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,267
Members
449,075
Latest member
staticfluids

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