How to Use Combined MIN and IF Functions in Excel (2 Ways)

Here, we have the sales data of three different brands for two different products along the location of their stores. We will apply a single criterion and multiple criteria on this dataset to find the lowest number of cells.

Illustrating Usage of the MIN and IF Function in Excel


Method 1 – Determining Minimum Sales Combining Excel MIN and IF Functions

1.1 Imposing Single Criteria

Steps:

  • Select cell H5 and enter:

=MIN(IF(D5:D10=H4,E5:E10))

  • Press Enter.
  • As a result, we have the lowest sales of the store in Paris.

Using MIN and IF Functions with a Single Criterion

Read More: How to Find Lowest 3 Values in Excel


1.2 Implying Multiple Criteria

Steps:

  • Choose cell H6 and enter:
=MIN(IF(B5:B10=H4,(IF(D5:D10=H5,E5:E10))))
  • Press Enter.
  • We get the minimum sales number of shirts from the Paris store.

Applying MIN and IF Function with Multiple Criteria

Formula Breakdown

  • IF(D5:D10=H5,E5:E10)—> This formula matches values from the D5:D10 range with the value in the H5 cell, Paris. Then, it returns the Sales value corresponding to Paris from the E5:E10 range and for other values in the E5:E10 range it returns False.
    • Output: {40000;FALSE;32000;40000;FALSE;FALSE}.
  • IF(B5:B10=H4,(IF(D5:D10=H5,E5:E10)))—> This formula matches the value in the H4 cell, which is Shirt, with the values in the B5:B10 cells and returns the values if true and otherwise returns False.
    • Output: {40000;FALSE;32000;40000;FALSE;FALSE}.
  • MIN(IF(B5:B10=H4,(IF(D5:D10=H5,E5:E10))))–> In this formula, the MIN function returns the minimum value from the previous array.
    • Output: $32000

Read More: How to Find Minimum Value Based on Multiple Criteria in Excel


Method 2 – Using the MINIFS Function

Steps:

  • Click on cell H6 and enter the following formula:
=MINIFS(E5:E10,C5:C10,H4,D5:D10,H5)
  • Press the Enter button.
  • We get the lowest sales of Tommy Hilfiger from the store in Paris.

Utilizing MINIFS Function

The MINIFS function is the latest edition of Excel. It allows users to impose multiple conditions to find the least value from a list. Unlike the previous method, which used the Nested IF inside the formula, this method is more compact and less prone to mistakes.

Read More: How to Find Minimum Value in Excel


Download the Practice Workbook

You can download the practice workbook here.


Related Articles


<< Go Back to Excel MIN Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Adnan Masruf
Adnan Masruf

Adnan Masruf, holding a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, plays a pivotal role as an Excel & VBA Content Developer at ExcelDemy. His deep passion for research and innovation seamlessly aligns with his dedication to Excel. In this capacity, Masruf not only skillfully addresses challenging issues but also exhibits enthusiasm and expertise in gracefully navigating intricate situations, underscoring his steadfast commitment to consistently delivering exceptional content. His interests... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo