SOLVED

Conditional formatting row by row (text contains)

%3CLINGO-SUB%20id%3D%22lingo-sub-1644850%22%20slang%3D%22en-US%22%3EConditional%20formatting%20row%20by%20row%20(text%20contains)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1644850%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20colour%20cells%20which%20contain%20the%20word%20from%20column%20A%20but%20only%20those%20which%20are%20in%20the%20same%20row.%20There%20are%20over%2010000%20rows%2C%20so%20it%20should%20be%20easily%20adaptable%20to%20other%20rows.%3C%2FP%3E%3CP%3EExample%3A%3C%2FP%3E%3CP%3E1st%20dog%3A%20-%26gt%3B%20dog%20walker%20-%26gt%3B%20cat%3CBR%20%2F%3E2nd%20cat%3A%20-%26gt%3B%20dog%20-%26gt%3B%20hamster%3CBR%20%2F%3E3rd%20hamster%3A%20-%26gt%3B%20hamster%20food%20-%26gt%3B%20hamster%20cage%3C%2FP%3E%3CP%3EAll%20cells%20in%20line%201%20which%20contain%20dog%20should%20be%20coloured%20and%20so%20on.%20Can%20someone%20help%20me%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1644850%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1644947%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20formatting%20row%20by%20row%20(text%20contains)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1644947%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F785946%22%20target%3D%22_blank%22%3E%40Muemi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20apply%20rule%20with%20the%20formula%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DISNUMBER(SEARCH(%22dog%22%2CA1))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eto%20your%20entire%20range%20(1000%20row)%20if%20the%20range%20starts%20from%20A1%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1644978%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20formatting%20row%20by%20row%20(text%20contains)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1644978%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F785946%22%20target%3D%22_blank%22%3E%40Muemi%3C%2FA%3En%2C%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20this%20in%20your%20conditional%20formatting.%26nbsp%3B%3DIF(SEARCH(%24A1%2CB1)%26gt%3B0%2CTRUE%2CFALSE)%3C%2FP%3E%3CP%3EAnd%20apply%20it%20to%20all%20your%20cells.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Bennadeau_0-1599581244176.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F217034iF3FCB8CC3BE7E383%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Bennadeau_0-1599581244176.png%22%20alt%3D%22Bennadeau_0-1599581244176.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1645388%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20formatting%20row%20by%20row%20(text%20contains)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1645388%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F703724%22%20target%3D%22_blank%22%3E%40Bennadeau%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20cosmetic%20comment%2C%20simple%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DSEARCH(%24A1%2CB1)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIf%20it%20returns%20an%20error%20format%20trigger%20won't%20work%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I would like to colour cells which contain the word from column A but only those which are in the same row. There are over 10000 rows, so it should be easily adaptable to other rows.

Example:

1st dog: -> dog walker -> cat
2nd cat: -> dog -> hamster
3rd hamster: -> hamster food -> hamster cage

All cells in line 1 which contain dog should be coloured and so on. Can someone help me?

5 Replies

@Muemi 

You may apply rule with the formula like

=ISNUMBER(SEARCH("dog",A1))

to your entire range (1000 row) if the range starts from A1

Hi @Muemin, 

Try this in your conditional formatting. =IF(SEARCH($A1,B1)>0,TRUE,FALSE)

And apply it to all your cells.

Bennadeau_0-1599581244176.png

 

 

Best Response confirmed by Muemi (New Contributor)
Solution

@Bennadeau 

As a cosmetic comment, simple

=SEARCH($A1,B1)

If it returns an error format trigger won't work

I t works perfectly. Thank you @Bennadeau & @SergeiBaklan

@Muemi , you are welcome