Intersection of range of rows' value and columns' values with conditional formatting using vba

Sathya89

New Member
Joined
Jun 6, 2012
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Happy day

Below is the data of my work. Data size will be variable.i need to format the rows and columns as per the values which are intersect.
Rows' colors and formats of column C as shown in the left are as default color and format of the respective same rows in specified working range and Columns' color and format at the top(from F5:N5) are to be copied from the above to the each cell if intersection happens( such that if the cell value at the top (from F6:N6) matches any of the values in the range of same respective row at the right).

Requirement
Step 1:
Format in each row of column C to be copied to respective rows of given specified range.
Step 2 :
Check the each cell value (from F6:N6) in the given range is matching with any of the value in respective range of same row values at the right
Step 3:
If intersect(cell value match with the value in the respective range of rows),respective cell to be formatted with respective column format and color from the top.

I tired with sum product and conditional formatting .it worked for small data. but for large data,processing is taking too much time to give result and also sometime,Laptop get hanged up. Every time,i have to edit my conditional formatting each time when there is change in column and row colors.I tired with google search for vba codes for dynamic ranges. But cant find solution.So,I hope this is right place to share the data and it will be simple for the experts here to give a suitable vba code. i have given the required result of my data.

Formatting data as per intersection.xlsm
CDEFGHIJKLMNOPQR
5
6ABCABCABC
7AC
8B
9A
10C
11BC
12A
13C
14AB
15A
Sheet3
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Below is the correct required data.Any suggestion and help will be highly appreciated.

Thanks in advance

Formatting as per intersection.xlsm
CDEFGHIJKLMNOPQR
5
6ABCABCABC
7AC
8B
9A
10C
11BC
12A
13C
14AB
15A
Sheet3
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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