conditional formatting with multiple conditions

Kyttdina

New Member
Joined
Apr 16, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
column a= room number, column B person name, column C,D, E= cells which should be highlighted after the data (K) is manually inserted
if anyone in the same room is K the others should be highlighted
If anyone from the same room is C or empty then no highlight is needed
If anyone in the room is K, then C will be entered into highlighted cell
(the highlight is necessary for not having two K at the same time in same room)

i hope i explained it well enough (English is my third language, i apologize for mistakes)
thank you in advance
 

Attachments

  • Annotation 2021-04-19 202954.jpg
    Annotation 2021-04-19 202954.jpg
    29.7 KB · Views: 11
Try:

Book2
ABCDE
1roomname13:0014:0015:00
2101aaak2
3101bbb12
4101ccc
5101dddc2
6111ccckk2
7111ddd
8111aaa
9121bbb
10121ccck2
11121ddd
12121aaa
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:E12Expression=COUNTIFS($A$2:$A$12,$A2,B$2:B$12,"K",C$2:C$12,2)textNO
C2:E12Expression=COUNTIFS($A$2:$A$12,$A2,C$2:C$12,"K")textNO
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try:

Book2
ABCDE
1roomname13:0014:0015:00
2101aaak2
3101bbb12
4101ccc
5101dddc2
6111ccckk2
7111ddd
8111aaa
9121bbb
10121ccck2
11121ddd
12121aaa
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:E12Expression=COUNTIFS($A$2:$A$12,$A2,B$2:B$12,"K",C$2:C$12,2)textNO
C2:E12Expression=COUNTIFS($A$2:$A$12,$A2,C$2:C$12,"K")textNO
i am speechless. thank you so much. works perfectly!
you are my hero!
Dina
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,954
Members
449,198
Latest member
MhammadishaqKhan

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