How do I shade a whole row based on the value in one of the columns? Thanks
How do I shade a whole row based on the value in one of the columns? Thanks
Use Conditional Formatting.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Use Conditional Formatting
Assuming row A should be shaded based on A1 being "ABC"...
Select the cells on row A you want shaded.
Conditional Formatting
New Rule
Use a formula to determine...
=($A$1="ABC")
format as required.
Use Format painter to copy the format to other rows.
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
@Special-K: rows are usually referred to by number and columns by alphabet so it's a little confusing if you transpose them.
But to build on the suggestion, you could select all the rows and columns at once and then use the formula:Formula:Please Login or Register to view this content.
Regards, TMS
Good point, I meant row 1 not row A
Thanks for the help but its only changing that certain cells colour I need to do the full row, so if it says connected all of that row automatically turns green. Is this possible.
Thanks
dave
Thanks for the help but its only changing that certain cells colour I need to do the full row, so if it says connected all of that row automatically turns green. Is this possible.
Thanks
dave
Clear the Conditional Formatting you already have.
Select ALL the cells you want to change colour on your selected row
formula
=($A1="ABC")
and format as required
ALL the cells you selected should change colour when that condition is true.
Thanks all. It works perfectly when I select the first row and apply conditionally formatting, but when I copy the format to subsequent rows they also automatically shade when they don't meet the criteria. It seems to still use the value from row 1 as opposed to the value of that column on the subsequent row. How do I tell it to look for the value of the column on the respective row?
I think you need to remove the second $
so it's like
$A1
rather than
$A$1
Then use Format painter
You're not wrong! I have one happy colleague now. Thanks very much.
Yes, it'sas opposed toFormula:Please Login or Register to view this content.and you don't need the brackets soFormula:Please Login or Register to view this content.Formula:Please Login or Register to view this content.
And, as I said, if you use that formula, you can select all the rows and columns starting with cell A1 and apply the formatting in one go.
As Special-K suggested, it would be a good idea to check and, if necessary, remove any other CF affecting those cells.
Regards, TMS
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks