Conditional formatting formula that is case sensitive


New Member
Apr 30, 2014
I am trying to highlight cells that contain anything other that a capital "Y" or capital "N". this is what I have so far, it's working but it is not case sensitive =NOT(OR(A1="Y",A1="N")). I tried using CHAR(ASCII#) and also tried to nest the FIND function but could not get them to work.

I'm also having trouble with my next step for this. In my spread sheet if lets say A1:J1 are either blank or have "Y" in them then I would put "$$" in K1. If any of those cells contain a "N" there should not be "$$" in K1. So I would like a formula where if K1="$$" then look at A1:J1, if those cells contain anything other than "Y" then highlight K1.

Thank you in advance. I really appreciate all the help I've gotten from the people on this forum!


Well-known Member
Jan 11, 2012
For the second part, in K!, use =AND(K1="$$",COUNTIF($A$1:$J$1,"Y")<>10)

The 10 is from the fact that there are 10 cells from A1 to J1,


New Member
Apr 30, 2014
Well this will probably make some folks on here laugh but I got it working haha

=IF(AND(K7="$$", A7<>"y",A7<>""),TRUE,IF(AND(K7="$$", B7<>"y",B7<>""),TRUE,IF(AND(K7="$$", C7<>"y",C7<>""),TRUE,IF(AND(K7="$$", D7<>"y",D7<>""),TRUE,IF(AND(K7="$$", E7<>"y",E7<>""),TRUE,IF(AND(K7="$$", F7<>"y",F7<>""),TRUE,IF(AND(K7="$$", G7<>"y",G7<>""),TRUE,IF(AND(K7="$$", H7<>"y",H7<>""),TRUE,IF(AND(K7="$$", I7<>"y",I7<>""),TRUE,IF(AND(K7="$$", J7<>"y",J7<>""),TRUE,FALSE))))))))))

That's a lot of IF's

Thanks everyone!

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...