excel conditional formatting

Nikhil2803

New Member
Joined
Jul 18, 2023
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi Team, I have the below sheet with some conditions. If I put value in D column(name), then col B and C should be highlighted as RED. user has to either type values in Col B or Col C(only one col), if you see the 5th row, this is the expectations. In row 6, if I am giving values in col C, its working. IF I try to give values in Col B, its not working, It should also work as row 6. Below are the formatting code for both col.

for B : =AND(COUNTA($C5:$V5)+COUNTA($X5:$AZ5)>0,ISBLANK($C5))
For C : =AND(COUNTA($C5:$V5)+COUNTA($X5:$AZ5)>0,ISBLANK($C5))
1695924465662.png

Any leads on this will be highly appreciated
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Give this a try:

Book1
ABCD
3messagea idEmployee IDLast Name
411ss
51sd
6sd
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:C6Expression=AND($B4="",$C4="",$D4<>"")textNO
 
Upvote 0
Give this a try:

Book1
ABCD
3messagea idEmployee IDLast Name
411ss
51sd
6sd
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:C6Expression=AND($B4="",$C4="",$D4<>"")textNO
There are many columns like D. It will be helpful if you provide your inputs from the code which I have written
 
Upvote 0
There are many columns like D. It will be helpful if you provide your inputs from the code which I have written
I'm not sure what you mean. Does it apply to columns X:AZ? Your original description does not mention why those columns should be included in the CF formula. It would be beneficial to us both if you explained in full detail what you want.
Hi Team, I have the below sheet with some conditions. If I put value in D column(name), then col B and C should be highlighted as RED. user has to either type values in Col B or Col C(only one col), if you see the 5th row, this is the expectations. In row 6, if I am giving values in col C, its working. IF I try to give values in Col B, its not working, It should also work as row 6. Below are the formatting code for both col.
 
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,103
Members
449,096
Latest member
provoking

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