Microsoft Excel – conditional formatting on combination of two words

I often demonstrate how to conditionally format based on looking for particular text in a cell, but what if two (or more) words have to be in the text string. In the example below, I want to show cars that are both DIESEL and ESTATE.

Cars datalist

Selecting the column, I clicked the Home tab, then in the Styles groups, the Conditional Formatting tab dropdown and click New Rule. Select Use a formula to determine which cells to format.

Conditional formatting dialog box

The relevant column was column C, so in the Format values where this formula is true box, type

=AND(FIND(“DIESEL”,C1),FIND(“ESTATE”,C1))

Click Format and format to your choice, then click OK three times. Your dataset should be formatted as required.

Cars datalist formatted

Find out more about our Microsoft Excel training Sydney, Australia and our Microsoft Excel training London, Surrey, Middlesex or Microsoft Excel training Hampshire, Wiltshire, Dorset, UK.

About jdonbavand

I am a trainer of Microsoft Office, Microsoft Project and Crystal Reports. I have called my blog "If Only I'd Known That...." because I hear it so many times in training sessions. In fact, if only I had a £100 (or 150 Aussie dollars)for every time someone says "If only I'd known that." ....
This entry was posted in Microsoft Excel, Microsoft Excel 2007, Microsoft Excel 2010, Microsoft Excel 2013 and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s