Conditional formatting Rows

HappyChappy

Active Member
Joined
Jan 26, 2013
Messages
378
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi currently use this formula to highlight an entire row =$R3="N" and it works fine
what i'm trying to do is if any of the row contains data not just this particuler cell i want to format the line a different colour
so for agurment sake the line has data format it amber.. when the partinuler cell has "N" format line green to show its complete
any help please
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Maybe something like
=COUNTA($A3:Z$3)<>0
Counts number of non empty cells. If it's not 0 then at least one cell on the row has data so should be formatted as amber.
 
Upvote 0
Assuming data in A3:Z3 maybe...

Rule 1 - green
=$R3="N"

Rule 2 - amber
=AND(COUNTA($A3:$Z3),$R3<>"N")

M.
 
Upvote 0
tried it but not working
It defaults the whole table to amber over riding the other formats.
 

Attachments

  • 1.png
    1.png
    19 KB · Views: 4
  • 2.png
    2.png
    12.3 KB · Views: 5
  • 3.png
    3.png
    10.5 KB · Views: 4
Upvote 0
Try the first formula to green and do not check Stop If True
You didn't mention a rule to red - could you clarify?

M.
 
Upvote 0
i use same formuls for red and green turn line to colour if either Y or N is entered in coloum R.
i wanted to have lines with data in amber so it stays that way until it either is a Y or N
 
Upvote 0
the idea is if there is any content in the cells it makes the line amber. then once i enter a Y or N to say it completed the amber is over ridden.

Hope this makes it clearer.
 

Attachments

  • 4.png
    4.png
    31.3 KB · Views: 6
Upvote 0
Maybe...

Top rule (green)
=$R3="N"

2nd rule (red)
=$R3= "Y"

Bottom Rule (amber)
=AND(COUNTA($A3:$Z3),$R3<>"N".$R3<>"Y")

M.
 
Upvote 0
The first the row are how it should look the red and green work fine but the amber doesnt work at all.
 

Attachments

  • 1.png
    1.png
    33.5 KB · Views: 6
Upvote 0
It's hard to help without seeing your data and expected results. The picture you showed above doesn't help .
Could you, please, post a clear data sample where we can see the columns' letters and the rows' numbers?
Try XL2BB

M.
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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