Index match with conditional formating

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

Good evening Excel Legends,

I am trying to apply conditional formatting to a column in Excel using the "Use a formula to determine which cells to format" feature.

In DATA sheet have a list of names in column A with corresponding reference numbers in column B and type in column C. In DATA sheet I have a longer list of reference numbers in row G4. I want the conditional formatting rule to look up the reference numbers in DATA Sheet against the row G4 and highlight the cell conditional formatting

File attached for your reference. Please assist me.

https://www.dropbox.com/s/78v00v0lbpcgpxk/ME.xlsx?dl=0

DATA;

[TABLE="width: 321"]
<colgroup><col><col span="4"></colgroup><tbody>[TR]
[TD]SUBJECT[/TD]
[TD]ID NO[/TD]
[TD]TYPE[/TD]
[TD="colspan: 2"]COLOR CODE[/TD]
[/TR]
[TR]
[TD]AA1[/TD]
[TD]3320[/TD]
[TD]MATHS[/TD]
[TD] [/TD]
[TD]HIS[/TD]
[/TR]
[TR]
[TD]AA2[/TD]
[TD]3321[/TD]
[TD]MATHS[/TD]
[TD] [/TD]
[TD]MATHS[/TD]
[/TR]
[TR]
[TD]AA3[/TD]
[TD]7320[/TD]
[TD]MATHS[/TD]
[TD] [/TD]
[TD]SCI[/TD]
[/TR]
[TR]
[TD]AA4[/TD]
[TD]7520[/TD]
[TD]MATHS[/TD]
[TD] [/TD]
[TD]ENG[/TD]
[/TR]
[TR]
[TD]AA5[/TD]
[TD]7521[/TD]
[TD]MATHS[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA6[/TD]
[TD]WAIT[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA7[/TD]
[TD]9900[/TD]
[TD]MATHS[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA8[/TD]
[TD]6500[/TD]
[TD]MATHS[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA9[/TD]
[TD]6586[/TD]
[TD]ENG[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA10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[/TD]
[TD]SCI[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA26[/TD]
[TD]3500[/TD]
[TD]ENG[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA27[/TD]
[TD]3501[/TD]
[TD]ENG[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA28[/TD]
[TD]4500[/TD]
[TD]MATHS[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA29[/TD]
[TD]4501[/TD]
[TD]SCI[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA30[/TD]
[TD]4502[/TD]
[TD]ENG[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA31[/TD]
[TD]4503[/TD]
[TD]ENG[/TD]
[TD][/TD]
[TD]

[/TD]
[/TR]
</tbody>[/TABLE]

DESIRED RESULT

[TABLE="width: 1331"]
<colgroup><col><col span="5"><col><col span="3"><col span="3"><col><col span="18"></colgroup><tbody>[TR]
[TD]SUBJECT[/TD]
[TD]AA1[/TD]
[TD]AA2[/TD]
[TD]AA3[/TD]
[TD]AA4[/TD]
[TD]AA5[/TD]
[TD]AA6[/TD]
[TD]AA7[/TD]
[TD]AA8[/TD]
[TD]AA9[/TD]
[TD]AA10[/TD]
[TD]AA11[/TD]
[TD]AA12[/TD]
[TD]AA13[/TD]
[TD]AA14[/TD]
[TD]AA15[/TD]
[TD]AA16[/TD]
[TD]AA17[/TD]
[TD]AA18[/TD]
[TD]AA19[/TD]
[TD]AA20[/TD]
[TD]AA21[/TD]
[TD]AA22[/TD]
[TD]AA23[/TD]
[TD]AA24[/TD]
[TD]AA25[/TD]
[TD]AA26[/TD]
[TD]AA27[/TD]
[TD]AA28[/TD]
[TD]AA29[/TD]
[TD]AA30[/TD]
[TD]AA31[/TD]
[/TR]
[TR]
[TD]ID NO[/TD]
[TD]3320[/TD]
[TD]3321[/TD]
[TD]7320[/TD]
[TD]7520[/TD]
[TD]7521[/TD]
[TD]WAIT[/TD]
[TD]9900[/TD]
[TD]6500[/TD]
[TD]6586[/TD]
[TD]6530[/TD]
[TD]8600[/TD]
[TD]5321[/TD]
[TD]WAIT[/TD]
[TD]2255[/TD]
[TD]8581[/TD]
[TD]8580[/TD]
[TD]5320[/TD]
[TD]5325[/TD]
[TD]1100[/TD]
[TD]2233[/TD]
[TD]2230[/TD]
[TD]9500[/TD]
[TD]9531[/TD]
[TD]9680[/TD]
[TD]9681[/TD]
[TD]3500[/TD]
[TD]3501[/TD]
[TD]4500[/TD]
[TD]4501[/TD]
[TD]4502[/TD]
[TD]4503[/TD]
[/TR]
</tbody>[/TABLE]
 

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).
I think you can
Select B2:B32
Ctrl+C
Select H4
Paste Special; All, and check Transpose

M.
 
Upvote 0
thank for your reply. There is no another way. I have a more data. Its more hard to apply transpose every time. Please help me.
 
Upvote 0
I think you should
Turn-on the macro recorder
Do the copy + paste/transpose manually
Turn-off the macro recorder
So you have a code to automate the process

M.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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