Ravindra BagaleCourses & study guides मराठी Track your progress

3. Formulas and Functions

3.4 AVERAGE, AVERAGEIF(S), MINIFS and MAXIFS

AVERAGEIF, MAXIFS and MINIFS with example — in 30 seconds

What: AVERAGEIF averages only matching rows. MAXIFS and MINIFS find the biggest and smallest value among matching rows.

Why: "Average delivery time in Pune" and "slowest Pune order" are the two questions a city manager asks every week.

Tiny example: Pune delivery minutes are 9, 14, 8 and 13. Average = 11 minutes, slowest = 14 minutes.

First look at the data (before → after):

AVERAGEIF, MAXIFS and MINIFS with example: before and after tables, fictional FreshGo Maharashtra data

Expected result — Answers

Question Formula Answer
Average Pune minutes =AVERAGEIF(C2:C11,"Pune",H2:H11) 11
Slowest Pune order (mins) =MAXIFS(H2:H11,C2:C11,"Pune") 14
Smallest delivered amount (₹) =MINIFS(G2:G11,I2:I11,"Delivered") 64

About this data: Teaching sample for a fictional shop “Orbit Logistics”. Figures and names (e.g. Neha Shah) are made up for this lesson on average averageif s minifs and maxifs.

Before table and formula as text

Before — Pune rows: delivery minutes

A: Order ID C: City H: Mins
BLK-1001 Pune 9
AMN-1003 Pune 14
BLK-1006 Pune 8
BLK-1009 Pune 13

About this data: Demo table only — not real customer or company data. Built to practise average averageif s minifs and maxifs.

Formula / click path

=AVERAGEIF(C2:C11,"Pune",H2:H11)
=MAXIFS(H2:H11,C2:C11,"Pune")
=MINIFS(G2:G11,I2:I11,"Delivered")

Do it step by step:

  1. Click an empty cell and type =AVERAGEIF(C2:C11,"Pune",H2:H11).
  2. Note the order: condition range, condition, then the numbers to average.
  3. Type =MAXIFS(H2:H11,C2:C11,"Pune"). Here the numbers come first.
  4. Type =MINIFS(G2:G11,I2:I11,"Delivered").
  5. Check: 11, 14 and 64.
Function Syntax Example Result
AVERAGE =AVERAGE(range) =AVERAGE(H2:H11) 12.8 mins
AVERAGEIF =AVERAGEIF(range, criteria, [average_range]) =AVERAGEIF(C2:C11,"Pune",H2:H11) 11 mins
AVERAGEIFS =AVERAGEIFS(avg_range, crit_range1, crit1, …) =AVERAGEIFS(G2:G11,D2:D11,"FreshGo") 333.29
MINIFS (Excel 2019+) =MINIFS(min_range, crit_range1, crit1, …) =MINIFS(H2:H11,I2:I11,"Delivered") 8 mins
MAXIFS (Excel 2019+) =MAXIFS(max_range, crit_range1, crit1, …) =MAXIFS(G2:G11,E2:E11,"Fruits") 270

About this data: Made-up rows so you can copy the pattern for average averageif s minifs and maxifs. Currencies may use ₹, £, € or $.

Other useful statistics: MEDIAN, MODE.SNGL, STDEV.S, LARGE(range,k), SMALL(range,k). Example: second-highest order =LARGE(G2:G11,2) → 270.

Worked example – AOV (Average Order Value) for delivered orders: =AVERAGEIFS(G2:G11,I2:I11,"Delivered") → 2,215 ÷ 7 = ₹316.43.

Ravindra Bagale's Tip

Many students don't understand the difference between blank and zero in an average – AVERAGE skips blank cells but counts 0. If you enter 0 as the amount of a cancelled order, the AOV drops. Before calculating an average, decide exactly which data should be included, and put the condition (Delivered) in AVERAGEIFS.

Practice task

Find the average delivery time for each city, the fastest delivered order in Nashik (MINIFS), and the third-largest order value (LARGE).

Loading practice tasks...

  1. Average delivery time (Easy): Find the average of Mins in H2:H11.
  2. School: average marks (Easy): Find the average of School!D2:D7.
  3. Average time in Pune (Medium): Find the average Mins for Pune orders.
  4. Slowest Pune order (Medium): Find the highest Mins for Pune orders.
  5. Smallest delivered order (Medium): Find the smallest amount among Delivered orders.
  6. School: class 10A average (Medium): Find the average marks of class "10A".
  7. School: top Maths mark (Medium): Find the highest Maths mark.
  8. School: lowest in 10B (Medium): Find the lowest mark in class "10B".
  9. Biggest MarketRush order (Hard): Find the highest amount for MarketRush (column D).
  10. Pune delivered average time (Hard): Find the average Mins for Pune orders that are Delivered.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Average Averageif S Minifs And Maxifs?
Card 1: What is Average Averageif S Minifs And Maxifs? · Download PNG
Revision card 2: Tiny example — Average Averageif S Minifs And Maxifs
Card 2: Tiny example — Average Averageif S Minifs And Maxifs · Download PNG
Revision card 3: Checklist — Average Averageif S Minifs And Maxifs
Card 3: Checklist — Average Averageif S Minifs And Maxifs · Download PNG