Adjust AverageIf Formula

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540
Hi,

I have the following formula;

=IF(G36="","",AVERAGEIF(INDEX('Heifers-Steers-Day'!$U$36:$NU$1214,0,MATCH($G36,'Heifers-Steers-Day'!$U$32:$NU$32,0)),">0"))

I need to add 2 extra conditions to the ">0" condition. These are;

'Heifers-Steers-Day'!$G$36:$G$1214,">="&$V36
'Heifers-Steers-Day'!$G$36:$G$1214,"<="&$Y36

Any helpers ??
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
what version of excel are you using ? If you have 2007 or later use AVERAGEIFS instead of AVERAGEIF

note that the syntax is a bit different =averageifs(average RANGE,CRITERA RANGE1, CRITERIA1, CRITERIA RANGE2, CRITERIA2) ETC
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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