Highlight the values of a column which are list based on another column values in a sheet

Saritha123

New Member
Joined
Mar 4, 2021
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have two sheets Pricing and Product_Discount as attached.
Pricing sheet data will start from Row5 and Product_Discount data will start from row 7.
Column 'P' from the Pricing sheet should be a list from Column 'D' of Product_Discount sheet.(these values are dynamic may increase or decrease).

In pricing sheet based on the Column Q value, if that value exists in E column of Product_Discount sheet, then respective value from the list in column 'P' of Pricing sheet should get highlight/select automatically.

Example:
If column 'Q' of Pricing sheet has a value -167%, then column 'P' of Pricing sheet should select 'Prod_Disc' (as Product_Discount sheet has a value Prod_Disc for -167).

Please help in a VBA macro.
Attached the sample excel.
Pricing.JPG
Prod_Disc.JPG
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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