I currently have the following formula to calculate average of days within a specific date range in excel. The question I have is will this formula give the correct average? Right now, it pulls data from a different sheet from column C and D within the date range defined on the worksheet where the average will be displayed. Column G specifies the days in the same worksheet as the dates. I gives me an average but, is this formula correct in giving an accurate average of days? Or will I need to only specify the date range in col C because the days are defined in col G for the average. Any help is appreciated, thanks.
=AVERAGE(IF('SHEET NAME'!$C:$D>=A16,IF('SHEET NAME'!$C:$D<=C16,'SHEET NAME'!$G:$G)))
Where A16 is the startdate and C16 is the enddate specified on the worksheet where the average will be.
Bookmarks