Microsoft Excel – Using conditional formatting to highlight the minimum number on each row

Someone on a recent Excel course said that he had been looking at comparing prices from different suppliers for different products and wanted to find minimum prices for each product and highlight them.
This can be done using conditional formatting in Excel.
First select the data area.

Data area for finding minimum

On the Home tab, in the Styles group, from the Conditional Formatting dropdown, click New Rule.

Conditional Formatting New Rule box

From the New Formatting Rule box, select Use a formula to determine which cells to format.

Conditional Formatting formula

In the Edit the Rule Description box, type = followed by the first cell reference in your dataset , in this case B2. Then we need another = sign, then MIN(the range of columns we are looking at, with that row number). We specify a $ sign in front of the column letters so that Excel know we will always be looking at those columns (they are fixed) but we want to be able to move down from row to row.

Then click Format. Select your relevant formatting preference for the minimum in each row, then click OK twice. The minimum value on each row is highlighted.

Rows showing minimum values

Find out more about our Microsoft Excel training Sydney, Australia and our Microsoft Excel training London, UK. or our Microsoft Excel training 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