A script to match criteria

Jeff P

Board Regular
Joined
Jun 11, 2011
Messages
80
I have a double column "BC" which was made into a range ("MarkerRange") that contains an assortment of markers ID's to identify common rows.
as an example:

XT
00
FF
SU
ZZ
FF
0
XX
FF

In some cases the marker ID is a single character, or double, or only a solid color, or a color with a unique boarder color or just a pattern etc..
I have also created a drop down menu in cells JK, range ("MarkerID") which points to the list of marker IDs

Is it possible to create a "script" which will say: If the value "and" formatting from range ("MarkerID") matches anywhere in ("MarkerRange")
to place an "X" 3 colums to the right?

as an example:. if "FF" is selected in ("MarkerID") drop down menu

XT
00
FF x
SU
ZZ
FF x
0
XX
FF x

I have similar scripts which identify values, but none that include exact formatting.

Thanks for any help

Jeff
 
I see,

In my initial post, I had mentioned I would be using a secondary range as the target for searching.
I was hoping there was a general script which said: to search the column B for an exact match from the Target range.

What you're saying is that I have to be specific for every search.

So as an example, I recorded the following formatting.. What would it look like if I wanted to find every "F" with the formatting below, and mark an "x" three cells to the right.

thank you




Sub Macro1()

With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThick
.ColorIndex = 9
End With
End Sub




thanks
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Listen, Jeff. You want to search for values with extra condition: char color. Thus, you must have codes for colors you want to search beforehand. Understand?
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,391
Members
452,909
Latest member
VickiS

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