Change color in row to red when the value in A10 equals 0.

jay211948

New Member
Joined
Jan 24, 2023
Messages
3
Office Version
  1. 2003 or older
Platform
  1. Windows
I have a row A1 to A10 containing text and numbers. I want to change all entries in the row to red when the value in A10 equals 0.
Thanks.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
select A1 to A10
then use a formula
$A$10 = 0

Book6
A
1a
2b
3c
4d
51
62
73
84
95
100
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A10Expression=$A$10=0textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A1:A10 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$A$10=0

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Thanks for your response. However, I didn't give you the correct information. I meant to say that the row is A1 to F10. I need to change the color in the row to red when F10 equals 0.
 
Upvote 0
change the colour of all the rows 1 to 10 - or just row 10

If all the rows

Then , same sort of thing

select A1 to F10
and then use a formula

Blanks are seen as zero - this stops that
=AND($F$10<>"",$F$10=0)

Book6
ABCDEF
1a
2b
3c
4d
51
62
73
84
95
1000
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:F10Expression=AND($F$10<>"",$F$10=0)textYES
 
Upvote 0
Solution
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,066
Members
449,090
Latest member
fragment

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