Min and Max Look Up

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
331
Office Version
  1. 365
Platform
  1. Windows
I am using the below formula to find the average sum that matches the criteria. I am trying to adjust to create 2 new formulas for max and min based on criteria, but it is not working. I get #SPILL error. Can someone please help?

Using to find the average
=AVERAGEIF(S6:S221,B18,V6:V221)

I tried
=MAXIFS(S6:S221,B18,X6:X221)
=MINIFS(S6:S221,B18,X6:X221)

The criteria search term is in B18
The search term range is S6:S221
The Min and Max numbers are in X6:X221

Thank you.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Perhaps
Excel Formula:
=aggregate(14,6,(1/(S6:S221)=B18)*X6:X221,1)
for the max value
and
Excel Formula:
=aggregate(15,6,(1/(S6:S221)=B18)*X6:X221,1)
for the min value
 
Upvote 0
There is no such thing as maxif or minif, just maxifs & minifs.
 
Upvote 0

Forum statistics

Threads
1,216,046
Messages
6,128,489
Members
449,455
Latest member
jesski

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top