Conditionally formatting a row with relative references doesn't work!?

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to conditionally format an entire row (and all subsequent rows) based on a criterion for the first cell to be one of either of three text values, say "a", "b" or "c". When the formatting is done however with relative references only the first cell (which the criterion is based on) is highlighted. How do I get the whole row to be conditionally formatting, with relative references, as I want to use the format painter to copy down the formats?

If someone tells me how to add the spreadsheet to a post I will include the spreadsheet which I'm sure will take one of you a matter of seconds to figure out.

Thanks!
 
based on your last post. If you select A1 to D5, and create the following 3 different conditional formatting formulas in A1, I think is what you are looking for.
=AND($a1="a") format blue
=AND($A1="b") format green
=AND($A1="c") format yellow
Then if you highlight D1:D5 and copy it down all of the formats will follow.

Mr. Bill Thanks for that, it was the AND function that was needed for it to apply to the entire row, cheers!
The AND functions in those formulas are superfluous. They're not needed.

=$A1="A"
=$A1="B"
=$A1="C"
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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