Data Validation- Case Sensitivity

gvoisard

New Member
Joined
Aug 3, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
I understand that you cannot check for case sensitivity when you are referencing a source for your data validation. However, I cannot type in a list because I will use more than 255 characters.

Is there a way that I can use conditional formatting to turn the cell red if it does not exactly match a cell that is in the list that I am referencing for my data validation?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about this, if your validation list is housed on a sheet somehere.
Book1
ABC
1TestColors
2greenRed
3BlueGreen
4BlackBlue
5WhiteYellow
6OrangeOrange
7GreenPurple
8TealViolet
9BrugundyTeal
10RedBurgundy
11LavenderLavender
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A11Expression=IFERROR(EXACT($A2,INDEX($C$2:$C$11,MATCH($A2,$C$2:$C$11,0))),FALSE)=FALSEtextNO
 
Last edited:
Upvote 0
How about this, if your validation list is housed on a sheet somehere.
Book1
ABC
1TestColors
2greenRed
3BlueGreen
4BlackBlue
5WhiteYellow
6OrangeOrange
7GreenPurple
8TealViolet
9BrugundyTeal
10RedBurgundy
11LavenderLavender
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A11Expression=IFERROR(EXACT($A2,INDEX($C$2:$C$11,MATCH($A2,$C$2:$C$11,0))),FALSE)=FALSEtextNO
Sorry I was not very clear. All of the cells that I am referencing (Column C in this case) are capitalized. If there is any cells that have lowercase letters in column A, I want the cell to highlight red.
 
Upvote 0
Sorry I was not very clear. All of the cells that I am referencing (Column C in this case) are capitalized. If there is any cells that have lowercase letters in column A, I want the cell to highlight red.
Does this not do what you want? Look at the first red cell, "green" vs "Green".
 
Upvote 0
Does this not do what you want? Look at the first red cell, "green" vs "Green".
1694459864345.png


It is not. Do you see anything wrong of the top of your head?
 
Upvote 0
What is that between the = and ISERROR? Looks like quotes or an asterisk? There shouldn't be any quotes around the formula. Also, I used IFERROR, not ISERROR.
Copy this formula exactly:
Excel Formula:
=IFERROR(EXACT($K2,INDEX('Formula Lists'!$K$2:$K$134,MATCH($K2,'Formula Lists'!$K$2:$K$134,0))),FALSE)=FALSE
 
Upvote 0
I understand that you cannot check for case sensitivity when you are referencing a source for your data validation.
Why not? Isn't this the sort of thing you are trying to achieve?
My DV list is in B2:B4
DV as shown in A2:A5
I have typed "THREE" into cell A2 and that has been allowed.

23 09 12.xlsm
AB
1
2THREEONE
3TWO
4THREE
5
DV
Cells with Data Validation
CellAllowCriteria
A2:A5Custom=EXACT(A2,FILTER($B$2:$B$4,$B$2:$B$4=A2,""))


If I try to enter Three into A3 this is what I get

1694520458610.png
 
Upvote 0
Solution
Is there a way that I can use conditional formatting to turn the cell red if it does not exactly match a cell that is in the list that I am referencing for my data validation?
Did the formula I suggested work for the highlighting or was that not what you were really after?
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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