Help with Max function in Averageifs formula

eta1322

New Member
Joined
Apr 27, 2014
Messages
11
Hi I have a averageif formula that I type in a high low criteria (example 1000 to 2000) and gives back the average

I need to be able to do the same function and give back the Max of the values but keep getting a #value back.

=IF(V7="","",AVERAGEIFS('Drill Data'!$C$6:$C$15000,'Drill Data'!$A$6:$A$15000,">="&$U7,'Drill Data'!$A$6:$A$15000,"<=" &$V7))

U=first input number
V=second input number
A=values U & V are looking up in
C=the value the average is pulling from

Thank you for any help
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,719
Office Version
  1. 365
Platform
  1. Windows
Check the values in column A. An #VALUE error indicates that one or more cells are not numeric, but text.
 

eta1322

New Member
Joined
Apr 27, 2014
Messages
11
there's no issue with that it's all numbers

also I am assume if it was that then I would get an error with my averageif formula which I don't
 

Joyner

Well-known Member
Joined
Nov 15, 2005
Messages
1,202
Until we have MAXIFS in Excel 2016...

Maybe something like array formula:

=MAX(IF(('Drill Data'!$A$6:$A$15000>=$U7)*('Drill Data'!$A$6:$A$15000<=$V7),'Drill Data'!$C$6:$C$15000))

CSE Formula - Entered with Cntl+Shift+Enter not just enter
 

eta1322

New Member
Joined
Apr 27, 2014
Messages
11
I tried something earlier and it didn't work, I think if forgot the "*" in there. Yours worked perfect thank you very much!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,416
Messages
5,596,010
Members
414,037
Latest member
Roamingsmile

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
Top