INDEX/MATCH with AVERAGEIF

dunmore83

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

In 'Heifers-Steers-By-Day' worksheet I have these variables;

Rows T20:NT20 have dates from 1/7/16 to 30/6/17

Range T24:NT1202 have numerical values

In cell J36 (separate worksheet) I need a formula to match the date in cell G36 (separate worksheet; same sheet as J36) with T20:NT20 & then return the average of this column (i.e. T24:T1202) for all values greater than 0.

Any helpers ??
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try

=AVERAGEIF(INDEX('Heifers-Steers-By-Day'!$T$24:$NT$1202,0,MATCH(G36,'Heifers-Steers-By-Day'!$T$20:$NT$20,0)),">0")

Hope this helps

M.
 
Upvote 0
Thanks!

I actually need to add 2 conditions to the above formula;

'Heifers-Steers-By-Day'!$G$24:$G$1202,">="&Y36
'Heifers-Steers-By-Day'!$G$24:$G$1202,"<="&Y36

Any ideas ??
 
Upvote 0

Forum statistics

Threads
1,226,121
Messages
6,189,103
Members
453,524
Latest member
AshJames

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