Conditional formatting "Highlight text" if all columns in range match criteria.

tazmtiger

Board Regular
Joined
Jul 7, 2005
Messages
194
Hi

I have a question for all that can possibly assist me....

I have a worksheet that returns, or displays unique matching values (on some, or all target columns in a range.

Basically: It looks up, or searches the typed-in input value and it compares it against all existing values in another part of same sheet
and when it finds a matching value to the (items / pieces), it returns a matching order# that has, or contains an exact value for that corresponding column in range.

We use excel for an order system that uses a unique order number, followed by multiple (items / pieces) which are identified by number values that are required for that specific order#.
Multiple orders across the sheet may contain some, or many cases all of matching (items / pieces).

Example: Order# 12345 "Container part #'s (items / pieces):

(12345)........1111...........2222..........3333...........4444............5555............6666.......7777.........8888
....................12345..........12345..........12345..........12345..........12345..........12345.......12345........12345
....................12346..........12344..........12341..........12341..........12340..........12344.......12347........12342
....................12348..........12348..........12348..........12348..........12348..........12348.......12348........12348

In my illustration above... Matching Order #'s are displayed beneath each (items / pieces) of the typed-in order#, when other order# contain "some, or all (items / pieces)."

In my illustrated above; (12348) is an order# that matches all criteria (items / pieces) of the typed-in target value (12345).

Is there a way to tell, or make excel highlight font green ONLY for any orders that MATCH ALL (items / pieces) found against the target typed-in target value (12345) across all corresponding columns in range. As I illustrated using the values above.
But. Do not highlight, if only a partial match is found against the (items / pieces) of target order number. from all columns (ACROSS ALL in range).

Your assistance is greatly and kindly appreciated.

Thank you!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Maybe...


[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"]
A
[/TD]
[TD="bgcolor: #DCE6F1"]
B
[/TD]
[TD="bgcolor: #DCE6F1"]
C
[/TD]
[TD="bgcolor: #DCE6F1"]
D
[/TD]
[TD="bgcolor: #DCE6F1"]
E
[/TD]
[TD="bgcolor: #DCE6F1"]
F
[/TD]
[TD="bgcolor: #DCE6F1"]
G
[/TD]
[TD="bgcolor: #DCE6F1"]
H
[/TD]
[TD="bgcolor: #DCE6F1"]
I
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
1
[/TD]
[TD]
12345​
[/TD]
[TD]
1111​
[/TD]
[TD]
2222​
[/TD]
[TD]
3333​
[/TD]
[TD]
4444​
[/TD]
[TD]
5555​
[/TD]
[TD]
6666​
[/TD]
[TD]
7777​
[/TD]
[TD]
8888​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
2
[/TD]
[TD][/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[TD="bgcolor: #92D050"]
12345​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
3
[/TD]
[TD][/TD]
[TD]
12346​
[/TD]
[TD]
12344​
[/TD]
[TD]
12341​
[/TD]
[TD]
12341​
[/TD]
[TD]
12340​
[/TD]
[TD]
12344​
[/TD]
[TD]
12347​
[/TD]
[TD]
12342​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #DCE6F1"]
4
[/TD]
[TD][/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[TD="bgcolor: #92D050"]
12348​
[/TD]
[/TR]
</tbody>[/TABLE]


Select B2:I4

Home > Conditional Formatting > New rule > Use a formula...

Insert this formula
=COUNTIF($B2:$I2,$B2)=COLUMNS($B2:$I2)
Format button pick Fill --> Green

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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