conditional formatting

dmac13

New Member
Joined
Oct 21, 2010
Messages
30
Hi is it possible to use conditional formatting to compaire 2 tables ?

Table 1 example - store level :-

Store Type Sales
1 A 100
2 A 50
3 B 70
4 C 30

Table 2 example - Company Level :-

Type Sales
A 150
B 70
C 30

is it possible to highlight the stores that are 50% under the company sales ? i.e if store 1 (type A) is 50% under the company sales total for A type stores, highlight red.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
That's good then ... what are the cell ranges of your 2 tables, and I'll tell you a formula to use in the conditional formatting ( it'll be quite simple, using INDEX and MATCH )?
 
Upvote 0
thanks

the store level table is D5:G58 where column D = the type and column G is the value to be compaired.

the type level table is D64:G70, the columns are in the same positions
 
Upvote 0
Select D6:G58, and do conditional formatting, formula is:
Code:
=$G6<(50%*INDEX($G$65:$G$70,MATCH($D6,$D$65:$D$70,0)))
and choose your fill colour.

Assuming that the first row of each table is titles.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

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