Apply conditional format color to each cell in a row relative to the value of each cell in a row from another sheet

tmk0427

Board Regular
Joined
Dec 14, 2005
Messages
71
Office Version
  1. 365
Hi excel experts, please help me with a formula that will apply a color in each cell who's value is greater than or less than each associated cell's value in the same row of a duplicate sheet. For example, tab 1 cells A1-E1 each have a value such as either 1 or 2. In tab 2 same cells A1-E1 if there is a variance in the value of these cells then Tab 1 cells A1-E1 will fill with a red color. I want to be able to apply this format to all cells in multiple rows on tab 1 say down to A1 to E20 that are based on the values of tab 2 same A1-E20 as an example. In reality I would like to apply this format to as many cell ranges I want on tab 1 that are the same as tab 2 range of cells. Hope this makes sense. Thanks.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Select the entire range and use this formula
Excel Formula:
=A1<>Sheet1!A1
 
Upvote 0
So I selected a range A1-E1 on sheet 1 and applied that formula in the conditional formatting option and selected a red fill color as the format but when I enter a 1 in any cells A1-E1 on sheet 2 there is no change in fill color in any cell A1-E1 on sheet 1. Am I doing something wrong? Also, I want to apply a different fill color if the values in cells A1-E1 are less than the same cell values in sheet 2 A1-E1 cells and I want to apply a different fill color if the cell values in sheet 1 are greater than cells in sheet 2. Thanks.
 
Upvote 0
So I selected a range A1-E1 on sheet 1 and applied that formula in the conditional formatting option and selected a red fill color as the format but when I enter a 1 in any cells A1-E1 on sheet 2 there is no change in fill color in any cell A1-E1 on sheet 1. Am I doing something wrong? Also, I want to apply a different fill color if the values in cells A1-E1 are less than the same cell values in sheet 2 A1-E1 cells and I want to apply a different fill color if the cell values in sheet 1 are greater than cells in sheet 2. Thanks.
Change the formula to "Sheet2" instead of "Sheet1".
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Sorry one more question. What would the formula be if I did not want the cell to have a fill color if the sheet 2 data cells are blank? Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,846
Messages
6,181,307
Members
453,031
Latest member
Chris_1

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