Forum Discussion
Conditional Formatting - using multiple formulas
=NOT(ISERROR(MATCH(LEFT(B1,6),$A$1:$A$3,0)))
Select B1, set the conditional formatting to the above formula. After that, set the conditional formatting apply to $B$1:$B$3.
Hi Willy,
Thanks heaps for your response, but we require the formula to be more expanded beyond a 6 character model #, i.e. the model can be any length of characters, not just limited to 6.
(LEFT(B1,6)
Does that make sense?
- Willy LauNov 30, 2017Iron Contributor
yes, that make sense. I am sorry. how about the suffix? Is the suffix fixed length? if yes, you can change
LEFT(B1,6)
to
LEFT(B1,LEN(B1)-LEN(Suffix))
- SergeiBaklanNov 30, 2017Diamond Contributor
The rule could be
=SUMPRODUCT(ISNUMBER(SEARCH($A$1:$A$100,$B1))*NOT(ISBLANK($A$1:$A$100)))
or whatever range you have
- Alex HsuNov 30, 2017Copper Contributor
Hi Sergei,
Thanks for your response, just trying to wrap my head around this formula =P before i put it into use.
- Willy LauNov 30, 2017Iron ContributorI'm also learning from Sergei from all his replies.
- Willy LauNov 30, 2017Iron Contributor
Thanks Sergei. I still have a question.
does your formula cater the following case
model
TABC123
ITEM
ABC123SUFFIX
- SergeiBaklanNov 30, 2017Diamond Contributor
Willy, prefix is not ignored, TABC123 won't be found in ABC123SUFFIX