Conditional formatting formula that is case sensitive

PatrickSchmidt

New Member
Joined
Apr 30, 2014
Messages
25
Hello,
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!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,037
Members
448,543
Latest member
MartinLarkin

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