fbpx
Search
Close this search box.

How to find the lowest value? [Quick tip]

Share

Facebook
Twitter
LinkedIn

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.

Finding provider with lowest value - using Excel formulas

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!

Highlighting lowest value using conditional formatting

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.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

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

Excel School made me great at work.
5/5

– Brenda

Excel formula list - 100+ examples and howto guide for you

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.

Advanced Pivot Table tricks

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.

letter grades from test scores in Excel

How to convert test scores to letter grades in Excel?

We can use Excel’s LOOKUP function to quickly convert exam or test scores to letter grades like A+ or F. In this article, let me explain the process and necessary formulas. I will also share a technique to calculate letter grades from test scores using percentiles.

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.)

  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)))

  6. Brad S. says:

    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)

  9. Brad Edgar says:

    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,

    Brad

Leave a Reply