How to highlight multiple rows with multiple number matching?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
578
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a table where column A shows sample numbers, column B shows sample names, and columns C to G show other properties of each sample.

In column J, I have a formula that spills down several sample numbers depending on various conditions.

I want all the A:G rows with sample numbers that match the numbers in the spill to be highlighted. I'm having a hard time to come up with the formula. I could easily write one for a single sample number (J1) like this:

=IF(ISNUMBER($J$1),$A1=$J$1) applied to =$A$1:$G$100

But how can I expand this to take into account the other spilled numbers in J?

Thanks for any input!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
It really would help in future if you could give us some small sample data and the formula in column J that you refer to. However, see if this dummy sample does what you want.

22 07 09.xlsm
ABCDEFGHIJ
1NoNameOther 1Other 2Other 3Other 4Other 5
21Name 193246959312
32Name 259973367815
43Name 367492594997
54Name 426335332668
65Name 5257862434
76Name 66533797273
87Name 76693737182
98Name 8278344471
109Name 97739726936
Highlight
Cell Formulas
RangeFormula
J2:J5J2=FILTER(A2:A10,D2:D10>50)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A10Expression=MATCH(A2,$J$2#,0)textNO
 
Upvote 0
Solution
Sure, I will. Thanks, that's exactly what I needed. (I just applied your rule to entire rows A:G, so now whole rows are highlighted)
 
Upvote 0
Glad it helped. Thanks for the follow-up. :)

BTW, unless you have other data further down column J, this would do just as well as your CF formula.

=MATCH(A2,J:J,0)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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