How format entire line?

imported_unknown

Active Member
Joined
Jan 13, 2002
Messages
424
I have an Excel template. If I save an Excel file to that templte name, I can already format one cell to, say, make the background yellow if one cell in that line has a value less than another.

But I can't figure out how to make the entire line, (6 cells total), have a yellow background if one cell is less in value that another in the same line.

Anybody kow the answer?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome...

Have you looked at Format | Conditional Formating...


pll
This message was edited by plettieri on 2002-10-04 15:32
 
Upvote 0
Hi Steve: welcome to the board

Say you want to format A2:F2 to be Yellow if A2>B2. Select the range A2:F2 and Choose Conditional Formating, Select the Formula is option. Enter =$A$2>$B$2. Note the absolute references. Now format the backgroud as yellow.

That's all there is to it.

Edit: If you need to format several rows at once that compare columns A&B, change the formula to =$A2>$B2. Make the rows relative
This message was edited by lenze on 2002-10-04 16:14
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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