MATCH a range with values in another column

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
In Table 1 (V53:Y62), I want to put back ground color using CF for those value which EQUALS column MA (MA53:MA62)

Sheet2

VWXYZMA

<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]52[/TD]
[TD="colspan: 4, align: center"]Table 1[/TD]

[TD="bgcolor: #cacaca, align: center"]53[/TD]
[TD="align: right"]100[/TD]
[TD="bgcolor: #ffff00, align: right"]200[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]678[/TD]

[TD="bgcolor: #ffff00, align: right"]200[/TD]

[TD="bgcolor: #cacaca, align: center"]54[/TD]
[TD="align: right"]456[/TD]
[TD="align: right"]201.12[/TD]
[TD="bgcolor: #ffff00, align: right"]400[/TD]
[TD="align: right"]456[/TD]

[TD="bgcolor: #ffff00, align: right"]400[/TD]

[TD="bgcolor: #cacaca, align: center"]55[/TD]
[TD="bgcolor: #ffff00, align: right"]222[/TD]
[TD="align: right"]128.96[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]123[/TD]

[TD="bgcolor: #ffff00, align: right"]222[/TD]

[TD="bgcolor: #cacaca, align: center"]56[/TD]
[TD="align: right"]158[/TD]
[TD="align: right"]158.22[/TD]
[TD="align: right"]256[/TD]
[TD="bgcolor: #ffff00, align: right"]145[/TD]

[TD="bgcolor: #ffff00, align: right"]145[/TD]

[TD="bgcolor: #cacaca, align: center"]57[/TD]
[TD="bgcolor: #ffff00, align: right"]122[/TD]
[TD="align: right"]145.88[/TD]
[TD="align: right"]125.87[/TD]
[TD="bgcolor: #ffff00, align: right"]122[/TD]

[TD="bgcolor: #ffff00, align: right"]122[/TD]

[TD="bgcolor: #cacaca, align: center"]58[/TD]
[TD="align: right"]958.23[/TD]
[TD="align: right"]145.88[/TD]
[TD="align: right"]126.9[/TD]
[TD="bgcolor: #ffff00, align: right"]888[/TD]

[TD="bgcolor: #ffff00, align: right"]888[/TD]

[TD="bgcolor: #cacaca, align: center"]59[/TD]
[TD="align: right"]125.666[/TD]
[TD="align: right"]123.23[/TD]
[TD="align: right"]125.63[/TD]
[TD="bgcolor: #ffff00, align: right"]999[/TD]

[TD="bgcolor: #ffff00, align: right"]999[/TD]

[TD="bgcolor: #cacaca, align: center"]60[/TD]
[TD="align: right"]125.888[/TD]
[TD="align: right"]111.22[/TD]
[TD="bgcolor: #ffff00, align: right"]222[/TD]
[TD="align: right"]125[/TD]

[TD="bgcolor: #ffff00, align: right"]222[/TD]

[TD="bgcolor: #cacaca, align: center"]61[/TD]
[TD="align: right"]999[/TD]
[TD="align: right"]888.99[/TD]
[TD="bgcolor: #ffff00, align: right"]777[/TD]
[TD="align: right"]115[/TD]

[TD="bgcolor: #ffff00, align: right"]777[/TD]

[TD="bgcolor: #cacaca, align: center"]62[/TD]
[TD="bgcolor: #ffff00, align: right"]1000[/TD]
[TD="bgcolor: #ffff00, align: right"]1000[/TD]
[TD="bgcolor: #ffff00, align: right"]1000[/TD]
[TD="bgcolor: #ffff00, align: right"]1000[/TD]

[TD="bgcolor: #ffff00, align: right"]1000[/TD]

</tbody>

How to accomplish?
Thanks in adv
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Select cells V53:Y62, go to Conditional formatting, new rule, and in the 'select a rule type' box choose "Use a formula to determine which cells to format. In the Format values where this formula is true box type: =V53=$MA53, then choose how you want to format it by clicking on the [Format] button. Hit OK, and be sure that in the "Applies To" box it says =$V$53:$Y$53.

Let me know how that goes.
 
Upvote 0
Select cells V53:Y62, go to Conditional formatting, new rule, and in the 'select a rule type' box choose "Use a formula to determine which cells to format. In the Format values where this formula is true box type: =IF(V53=$MA53,1,0), then choose how you want to format it by clicking on the [Format] button. Hit OK, and be sure that in the "Applies To" box it says =$V$53:$Y$53.

Let me know how that goes.

You don't need the =if statement, the result of =V53=$MA53 is "True" or "False".
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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