Search

# How to find the lowest value? [Quick tip]

Share

Lets say you are the head of purchasing department at Big Corp Co.

You are obviously very busy. Every day starting with a large cup of coffee and ends with a big smile, as you save your company thousands of \$s by negotiating best deals, finding best providers and being awesome.

Today, let me share a small Excel tip with you that will make you even more awesome.

Finding a provider with lowest value:

Lets say you are looking at a table like below and want to find-out lowest priced providers for each service.

To find providers with lowest value:

1. Find the least amount for each service. Assuming the services are in the range C5:G5, use =MIN(C5:G5) to get this.
2. Give a name to list of providers. I call mine as providers
3. Using INDEX, MATCH formulas find the provider name with lowest amount. Like this:
`=INDEX(providers, MATCH(minimum_value, C5:G5, 0))`
4. Bingo. You have the answer.

Bonus tip #1: Highlighting lowest values.

If you just want to highlight the lowest values, use conditional formatting.

1. Select first row of numbers.
2. Go to Home > Conditional Formatting > Top / Bottom rules > Bottom 10 items
3. Set to Bottom 1 and specify formatting as you want.
4. Using format painter, copy the conditional formatting, one row at a time.
5. Done!

Bonus tip #2: Handling Ties

Often 2 or more providers will tie for the bottom spot. What then?

One way to handle the ties is to show the word ties when 2 or more names have lowest value. To do this, use this formula instead.
``` =IF(COUNTIF(C5:G5, minimum_value)>1,"Ties", INDEX(providers,MATCH(minimum_value,C5:G5,0)))```

A formula challenge for you…

Now that you know how to find the lowest value, here is a challenge for you.

• How do you write a formula to find which provider has maximum lowest values. In this example, the name we are looking for is TATA as they have 3 lowest values.

Want to find more… look here:

If you want to find more Excel formula tips and techniques, look no further. Start your journey with this and see how deep your formulas can nest.

### Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

### Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

### How to calculate WEEKNUMBER in Month / Quarter / Year with Excel?

Let’s say you have daily data and your boss wants to see the trends by week in month or week in quarter? How do you calculate the week number in a month or quarter? In this article, let me explain the logic and formulas we can use Excel for this.

## Related Tips

Excel Howtos

Excel Howtos

Excel Howtos

Excel Howtos

Excel Howtos

Excel Howtos

### 14 Responses to “How to find the lowest value? [Quick tip]”

1. Usman says:

Dear Chandoo, can v use a helper column/row ? or the challenge is for one formula in one cell ??

2. Bobcat says:

Chandoo,
I am getting a #NAME? error with this formula.
I setup the exact cells you mentioned and used Ctrl/Shft enter
but still get the error
the conditional format worked and the price worked.

3. Matthew says:

Using the information available in the first screenshot, including the minimum prices and their respective providers, let's name the column just left of minimum_value:

In this case, lowest_providers = {"BSNL";"TATA";"Reliance";"TATA";"TATA"}

Now, the provider with the most low prices is given by:

{=INDEX(providers,1,MATCH(MAX(COUNTIF(lowest_providers,providers)),COUNTIF(lowest_providers,providers),0))}

(In the event of a tie, the left-most provider wins.)

• zurman says:

Can you send the full formula, as it is not readable because of cutting.

4. zurman says:

excel file make life easy for rookies like us

5. Andrew says:

Using the layout above where the minimum provider for each service has already been figured out I used:

=INDEX(Providers,1,MODE(MATCH(LowestProviders,Providers,0)))

to get the provider with the most minimums. Although this doesn't work if two providers tie.

• Micah says:

I came up with the same thing, save for 1 detail. You can eliminate the "row" input for INDEX in this situation, which will reduce your formula by 2 characters. 🙂

=INDEX(Providers,MODE(MATCH(LowestProviders,Providers,0)))

• Andrew says:

Excellent, thanks! I'll bear that in mind, use Index a lot! 😉

I like the idea behind conditional formatting for this. If you could use a color scale to visually show the reader lowest to highest prices, that would be cool.

• Matthew says:

And indeed, you can! For each row, simply apply "Conditional Formatting > Colour Scales". You can then tweak the 'fade' points between colours, as well as specifying them in terms of actual values or percentiles.

7. Janet says:

Chandoo - I think you haven't displayed all your steps - where did minimum_value come from?

Could you go through this a little more methodically?

8. Baljaa says:

=INDEX(Providers,MATCH(MIN(B4:F4),B4:F4,0))

Providers=(Define name)

Chandoo,

It's funny that I've come across this article as I just used some conditional formatting yesterday on some KPI PIVOT TABLE DASHBOARDS that I had built at work.

I used something similar to the conditional formatting outlined above to find our weekest versus strongest vendors based on meeting their promise date for their shipments. You also got to love the icon set (stop lights) in particulars for displaying good versus bad records.

One thing I didn't think of using was the index match function for identifying the lowest prices by category that's a great idea so thank you for that.

Anyway great post and much appreciation for the helpful tips. Ill be sure to add them to my excel tool bag.

Cheers,

### Get FREE Excel & Power-BI Newsletter

One email per week with Excel and Power BI goodness. Join 100,000+ others and get it free.