DATA VALIDATION: dropdown "x" and no more that one "X" in the range

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,790
Office Version
  1. 2016
Platform
  1. Windows
If I have a range, C4:G4, where I want to place an "X" to indicate a size, but there can be no more that one "X" in that range, is there a way to do that with Data Validation, or will it have to be VBA? This is a sizing chart to send to members and them to mark...
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Please try entering the following in the data validation dialog box.

Code:
[COLOR=#000000][FONT=&quot]=COUNTIF($C$4:$G$4,"X")<=1[/FONT][/COLOR]
 
Upvote 0
I had already used that in Allow Custom, but I was wanting to be able to use the Allow List and Allow Custom together...
 
Upvote 0
My apologies, I must have misunderstood your question.
 
Upvote 0
Just figured out I could use a "helper" cell with =if(COUNTIF($C$4:$G$4,"X")>=1,"","X") and that way when an X was selected from the Allow List "helper" cell, it would be blank in any other cell in the range so another X could not be selected ...

Now to try andybrown115 solution...
<strike></strike>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,749
Messages
6,180,727
Members
452,995
Latest member
isldboy

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