Conditional Formatting - Apply format if to both cells if one cell meets condition

GAJITCS

Board Regular
Joined
Apr 21, 2015
Messages
66
As per the title, I have two cells, B2:C2 that I need to apply Conditional Formatting to.

Where B2=A2, both B2 and C2 need to have the same formatting applied. Cells are on different worksheets as below.

Worksheet 1
A2=Apples

Worksheet 2
B2=Apples
C2=0.5

Many thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
GAJITCS, Good morning.

steve he fish, Greetings from Brazil.

GAJITCS, I believe it is not possible to directly reference other tabs in conditional formatting formulas.

But you can fool Excel in this case.

Create a Named Range with cell A2 of Sheet1.

Example: Sheet1!$A$2 ---> ORIGIN

Apply in the formula suggested above:

= AND($B$2<>"", $B$2= ORIGIN)

Please, tell us if it worked as you want.

I hope it helps.
 
Upvote 0
My bad... Was basing on of Cell Value, not formula.

Now working as you originally posted. Many thanks.
 
Upvote 0
ABCDE
2Bananas.6Apples.2
3Carrots.4Bananas.35
4Apples.49Apples.4
5Carrots.28Bananas.25
6Bananas.17Carrots.23

<tbody>
</tbody>
Sheet 2

ABC
1
2ApplesBananasCarrots

<tbody>
</tbody>
Sheet 1

Cells with Apples are to be filled Green, Bananas, Yellow and Carrots are Orange

Steve The Fish's solution worked when I was dealing with just columns B and C on sheet 2. I want to carry the same formatting over to Columns D and E.

When I use Format Painter, I get exactly the same formatting as in columns B and C, line for line though the content of cells in D has changed.

Is this down to Absolute referencing? If I take out the $, I lose the formatting in cells C and E.

Any ideas?|

Many Thanks.
 
Upvote 0
What i suggested works as intended Marcilio.
Steve the fish, Good afternoon.

My observation is due to the fact that it was mentioned that two different tabs will be used in conditional formatting.

"Cells are on different worksheets as below."

Worksheet 1
A2=Apples

Worksheet 2
B2=Apples
C2=0.5

I still believe that it is not possible to use conditional formatting while using references from more than one tab.

Please let me know if I'm really correct or not.
Learning more is always my goal.

Have a nice day!
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

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