Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have tried upteen different variations and cannot get the averageifs to work...
Anyone have an idea what I am doing wrong?? Dim OArng As Range 'Cell where Average is reported Dim Arng As Range 'Range of Dates to Average Dim Srng As Range 'Start Date Dim Erng As Range 'End Date Set OArng = Sheet1.Range("F3") Set Srng = Sheet1.Range("C1") Set Erng = Sheet1.Range("E1") Set Arng = Sheet2.Range("D2:D" & Range("AJ" & Rows.Count).End(xlUp).Row) With OArng Application.WorksheetFunction.AverageIfs(Arng,Arng =Sheet1.Range("C1"),Arng<=Sheet1.Range("E1")) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2010 to auto-generate an email to recipients in outlook 2010 | Excel Programming | |||
Excel 2010 | Excel Discussion (Misc queries) | |||
Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM | Excel Worksheet Functions | |||
Can't open workbook in excel 64 bit 2010 - but can in excel 2010 3 | Excel Programming |