excel conditional formatting

Nikhil2803

New Member
Joined
Jul 18, 2023
Messages
37
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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