• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel MIN IF Array Formula

You are here: Home / Excel Formulas / Excel MIN IF Array Formula
Excel MIN IF Array Formula
March 13, 2012 by Mynda Treacy

 
Excel MIN IF formula

A few weeks ago Karine asked me if there was a way she could find the minimum value for a specific product from a large table of data.

For example, if we take this table of data, let’s say we wanted to find the lowest price for Apples.

 
 
 
 
 
 

Excel MIN IF

One way is to use an array formula like this:

=MIN(IF((A4:A19=F3)*(B4:B19),(B4:B19)))

Entered with CTRL+SHIFT+ENTER as this is an array formula.

And where F3 contained our criteria; ‘Apples’

Result = $4.00

Excel MAX IF

Alternatively Karine could find the highest sale price by replacing MIN with MAX:

=MAX(IF((A4:A19=F3)*(B4:B19),(B4:B19)))

Result = $6.00

DMIN - Another Way to Find MIN IF

Of course many people are wary of array formulas and for that reason I prefer to use simpler alternatives if they’re available.

Introducing Database Function DMIN.

DMIN Syntax

=DMIN(database,field,criteria)

Returns the smallest number in the field (column of records in the database that match the conditions you specify.

Excel DMIN

Database

– Our whole table including the row headers – A3:B19

Field

– The column heading containing the value  – “Price”

Criteria

– Cells H3 – our column name, and H4 – our criteria

DMAX Alternative

The DMAX function works the same way but instead…wait for it….it finds the maximum:

=DMAX(A3:B19,"Price",H3:H4)

=$6.00

The only downside to Database functions is the spreadsheet real estate the criteria occupies, but I don’t think this should be an issue since each worksheet has over 1 billion cells.

Thanks for your question Karine.

Excel MIN IF Array Formula

More Database Functions Posts

More Dmax Posts

More Dmin Posts

More Max Posts

More Min Posts

More Excel Formulas Posts

excel formula by example

Excel Formula by Example

Excel can now write a formula by example. Simply give it an example or two of the result and Excel will write the formula.
ai-aided excel formula editor

AI Aided Excel Formula Editor

Save time with this free AI Excel formula editor add-in that writes, edits, improves and interprets formulas for you!
top excel functions for data analysts

Top Excel Functions for Data Analysts

Must know Excel Functions for Data Analysts and what functions you don’t have to waste time learning and why.
excel advanced formula environment

Excel Advanced Formula Environment

Excel Advanced Formula Environment is a long awaited, new improved way to write, name and store Excel formulas.
Pro Excel Formula Writing Tips

Pro Excel Formula Writing Tips

Must know Excel formula writing tips, tricks and tools to make you an Excel formula ninja, including a new formula editor.
excel shaping arrays

New Array Shaping Excel Functions

The Excel Shaping Array Functions makes it easier than ever to reshape arrays and ranges using these purpose built functions
excel nested if functions what not to do

Excel IF Formulas and What Not To Do

Excel IF formulas can get out of hand when you nest too many IFs. Not only do they become unwieldy they’re difficult for anyone to understand
excel image function

Excel IMAGE Function

The Excel IMAGE Function enables you to embed images in a cell using a formula. It supports BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and WEBP files

Excel VSTACK and HSTACK Functions

New Excel VSTACK and HSTACK functions makes combining arrays of cells easy and with some clever tricks we can extend their capabilities.
identify overlapping dates and times in excel

Identify overlapping dates and times in Excel

How to identify overlapping dates and times in Excel with a formula that checks a range of cells. Works with Dates and Times.


Category: Excel FormulasTag: database functions, dmax, dmin, max, min
Previous Post:Calculate How Long to Make $1m with NPERCalculate How Long to Make $1m with NPER
Next Post:Excel EDATE FunctionExcel EDATE Function

Reader Interactions

Comments

  1. Janakiram

    October 18, 2016 at 12:32 am

    Suppose I have three columns, one represents the area,other two represent fruit and prices respectively. I would like to apply D MIN and D MAX for area which should give least/highest price and name of the fruit. How it can be done.

    Reply
    • Mynda Treacy

      October 18, 2016 at 8:22 pm

      Hi Janakiram,

      Please post this question in our Excel forum and if you can provide a sample file that would help you get a speedy reply.

      Thanks,

      Mynda

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

launch excel macros course excel vba course

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

239 Excel Keyboard Shortcuts

Download Free PDF

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.