Conditional formatting based on formatting in other table

TheMonk

New Member
Joined
Apr 24, 2015
Messages
4
Say,I have 2 tables...Tables are related...

1 3 5 7
8 8 9 10
11 12 13 14

&
2 3 5 5
1 1 1 1
3 4 4 4

I have highlighted top 5 values in first table using conditional formatting rules.Now I want to highlight cells in the second table based on first table...Assume 11 12 13 14 7 10 are highlighted in first table....I want to highlight cells in second table occupied same position as of in highlighted cells in first table..i.e. 3 4 4 4 5 1 should be highlighted...How can I do that?:)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

You need to use Conditional Formating, but choose the 'Use a formula to determine which cells to format' and then apply the criteria which gives the same result as in the first table. For the situation you've described above you'd need to use something like =large($A$1:$D$3,1)=A1 then repeat for the top 5 by additional CF:

=large($A$1:$D$3,2)=A1
=large($A$1:$D$3,3)=A1
=large($A$1:$D$3,4)=A1
=large($A$1:$D$3,5)=A1

Hope this helps.
 
Upvote 0
What if I have 100 columns & 5 rows..I have selected top 200 items in first table...And I want to highlight 200 cells in second table having same position.
 
Upvote 0
This formula might work:

=large($A$1:$CV$5,200)<=A20

To use this highlight the second table, (I've assumed the top left cell is A20, which would make the bottom right CV24) and then apply the conditional formating using the 'use a formula to determine which cell to format' option and then use the formula above.

HTH.
 
Last edited:
Upvote 0
This formula might work:

=large($A$1:$CV$5,200)<=A20

To use this highlight the second table, (I've assumed the top left cell is A20, which would make the bottom right CV24) and then apply the conditional formating using the 'use a formula to determine which cell to format' option and then use the formula above.

HTH.

No,it is highlighting all the cells in second table...I think '<=A20' part is not correct..
 
Upvote 0
Hi TheMonk,

I've just checked the formula.

As written it ought not to be highlighting all the cells in the second table - I suspect that you've not got exactly the same formul as shown above. If you have something like: =large($A$1:$CV$5,200)<=$A$20 then the formula actually only tests the value in one cell and hence they'll all respond the same way.

Secondly, the formula is wrong! So, to hopefully get this working:

1. Highlight all your second table, from cell A20 to cell CV24.
2. From Conditional Formating select New Rule, 'Use a Formula to determine which cells to format', then in the box ' Format values where this formula is true' enter this: =large($A$1:$CV$5,200)<=A13. Do remember to ensure the '$' signs are in the places shown.

Hope this works.

Regards
 
Upvote 0

Forum statistics

Threads
1,215,522
Messages
6,125,312
Members
449,218
Latest member
Excel Master

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