Conditional formatting

PIDIT

New Member
Joined
Aug 12, 2011
Messages
9
Dear All,

I am using Excel 2007.

I have 2 sheets. Now I want to highlight only those cells in sheet 1, if corresponding cells in sheet 2 have text "error".

Please help. Thank you
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I don't think you can apply conditional formatting across 2 sheets. Must be within the same sheet.

To do this, you might have to create a helper column in the sheet you want the conditional formatting to look at the other sheet.

Steve=True
www.exceldashboardtemplates.com
 
Upvote 0
Dear Steve=True,

Thank you for your reply. I have not been able to fix it even if in same sheet. Can you help me?
 
Upvote 0
This works in 2003.

Highlight cells that may contain "error".
Set condition as
Code:
 Cell Value is equal to error
Format as needed.

Pedro
 
Upvote 0
Dear All,

I am using Excel 2007.

I have 2 sheets. Now I want to highlight only those cells in sheet 1, if corresponding cells in sheet 2 have text "error".

Please help. Thank you
Try this...

Let's assume the range to be formatted is Sheet1 A1:C5.

Select the *entire* range A1:C5 starting from cell A1.
Cell A1 will be the active cell. The active cell is the
one cell in the selected range that is not shaded. The
formula will be relative to the active cell.

Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule
Use a formula to determine which cells to format
Enter this formula in the box below:
=INDIRECT("'Sheet2'!RC",0)="error"
Click the Format button
Select the desired style(s)
OK out
 
Upvote 0
I don't think you can apply conditional formatting across 2 sheets. Must be within the same sheet.
You can, you just can't directly reference the other sheet.

You can use named ranges to refer to the other sheet or you can use INDIRECT like I did in my other reply.

I think that I read somewhere that in Excel 2010 you CAN directly refer to other sheets to apply CF. Would someone either confirm or correct this, please?
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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