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
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Check the values in column A. An #VALUE error indicates that one or more cells are not numeric, but text.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
I tried something earlier and it didn't work, I think if forgot the "*" in there. Yours worked perfect thank you very much!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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