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

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
i will try to edit the question:
Everyone in same room (f.e 102) should be highlighted, if anyone in that room will be marked with K in column C,D,E (f.e at 13:00 person Fff in room 102 is marked K, so persons Eee and Ggg should be highlighted) If anyone from the same room is marked C or empty in columns C,D, E then no highlight. If there is already K and the cells are highlighted, then C will be entered into highlighted cell.
i cannot figure out the formula. hopefully this explains better my struggle...
 
Upvote 0
Welcome to the forum!

Perhaps:

Book2
ABCDEF
1time
2roomname13:0014:0015:00
3101aaa101
4101bbbC101
5101cccKK101
6101dddC101
7102eee102
8102fffK102
9102gggK102
10103hhhK103
11103iiiC103
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B11Expression=SUMPRODUCT(($C$3:$E$11="K")*($A$3:$A$11=A3))*(COUNTIF(C3:E3,"C")=0)textNO
 
Upvote 0
=SUMPRODUCT(($C$3:$E$11="K")*($A$3:$A$11=A3))*(COUNTIF(C3:E3,"C")=0)
i suppose i was not very clear with my explanation. i will try again:
i have for people in room 101: aaa, bbb, ccc, ddd are the names of those people.
When i give one person a task K at 13:00 i need other three people to have a highlighted cell at 13:00 so i will not accidentally give any of them the same task (K).
but thanks for your suggestion
 
Upvote 0
Welcome to the forum!

Perhaps:

Book2
ABCDEF
1time
2roomname13:0014:0015:00
3101aaa101
4101bbbC101
5101cccKK101
6101dddC101
7102eee102
8102fffK102
9102gggK102
10103hhhK103
11103iiiC103
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B11Expression=SUMPRODUCT(($C$3:$E$11="K")*($A$3:$A$11=A3))*(COUNTIF(C3:E3,"C")=0)textNO
hi Eric
i used your formula and changed it a bit and now it does exactly what i need. i am so thankful to you.
i just changed it to this:
=SUMPRODUCT((C$3:C$11="K")*($A$3:$A$11=$A3))

i am so grateful!
 
Upvote 0
so what i mean is:
if C2= K and ColumnA= 101 then it returns the formats in all the cells in Column C ( or any column) that have 101 in ColumnA. - that is waht it does.
what i cannot make it to do: i need same formating in Column D (or any column) if C2=K is followed by D2=2.
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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