Conditional Formatting - a column

%3CLINGO-SUB%20id%3D%22lingo-sub-2211454%22%20slang%3D%22en-US%22%3EConditional%20Formatting%20-%20a%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2211454%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%20I%20want%20to%20check%20a%20column%20for%20certain%20words%20e.g.%20cat%2C%20dog%2C%20mule%2C%20chicken%2C%20horse%20and%20if%20the%20searched%20for%20word%20is%20found%20then%20I%20want%20to%20format%20it%20a%20certain%20way.%20E.G.%20cat%20(dark%20blue%20background%2C%20white%20text)%2C%20dog%20(beige%20background%2C%20black%20text%2C%20and%20so%20on.%20How%20can%20I%20do%20that%20or%20can%20I%20do%20that.%20I%20know%20I%20can%20use%20conditional%20formatting%20and%20containing%20specific%20text%20option.%20I%20find%20the%20cell%20references%20get%20muddled%20over%20time.%20Is%20there%20a%20function%26nbsp%3B%20which%20will%20let%20me%20look%20up%20a%20format%20depending%20on%20value%3F%20Like%20a%20sort%20of%3C%2FP%3E%3CP%3Eif%20x%20then%20(background%2C%20font%20colour%20and%20bold%20or%20italic)%2C%20if%20y%20then%20......%20if%20q%20then%20.....%20and%20so%20on.%20Do%20I%20need%20some%20sort%20of%20named%20range%20or%20can%20I%20not%20do%20this%3F%20Thanks.%20Dennis%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2211454%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi. I want to check a column for certain words e.g. cat, dog, mule, chicken, horse and if the searched for word is found then I want to format it a certain way. E.G. cat (dark blue background, white text), dog (beige background, black text, and so on. How can I do that or can I do that. I know I can use conditional formatting and containing specific text option. I find the cell references get muddled over time. Is there a function  which will let me look up a format depending on value? Like a sort of

if x then (background, font colour and bold or italic), if y then ...... if q then ..... and so on. Do I need some sort of named range or can I not do this? Thanks. Dennis 

4 Replies
As you mentioned you can use Conditional Formatting to look for specific text and format accordingly. As for getting messed up over time, excel tries hard but inserts, deletes, moves and such can mess up the conditional formatting range. As for alternative options, your only other choice for automatically changing formatting is to use a macro. Maybe instead look at what you are doing in the sheet (inserting/deleting/moving) and see if you could rearrange or reformat the sheet to avoid that. Maybe if you format the range as a table that could help. Or maybe if you have an 'input' sheet and then another sheet that formats and displays the data. In fact if you have an input sheet you can add a 'delete' column and enter a date that value was 'removed' and your output sheet wouldn't show it any more but you input sheet would even capture historical tracking information. Since I have no idea what your actual sheet is it is hard to say what might be best in your case.

Thanks for your reply. In truth I'm at best an occasional user and the wishes / wants detailed in the file are more hopes I can do something rather than sound expectations! 

@DennisMetro so in the file I saw how the formatting for col C got broken up but col B formatting (because it was set to the whole column) wasn't a problem.  I updated all the formatting rules to apply to the entire column so hopefully that will work smoother.  I only had to modify a couple rules to exclude the blank cells.

@mtarler Thanks a lot. IN the past I have had Col B break up even when the format was set to the entire column. I think that came about when I added additional events and then had to re-sort. In Col C I don't know what the modification does but I don't really need to know.  Thanks a million.