Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here's another way...
=AVERAGE(IF(B2:B1000,IF(ROW(B2:B100)=LARGE(IF(B2 :B100,ROW(B2:B100)),3), B2:B100))) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. This assumes that Column B contains your numbers, and does not include the text 'hrs'. Hope this helps! In article . com, "Greg" wrote: Hi All, I am looking to write a formula that will average the total number of hours worked for the last three months, but do not want to include any months with zero values. In other words, the last three months could actually be January, March and July (or they could be consecutive). I was thinking of an average in conjunction with a counta formula, but can't think of a way to have it stop and average when it hits 3 months. Any Ideas? Let me know if I should explain further. Example: Jan. 150 hrs. Feb. 0 hrs. Mar. 110 hrs. Apr. 0 hrs. May 0 hrs. June 160 hrs. In this example it would skip Feb. Apr. May, but if July had data, it would need to drop Jan. and use Mar., June and July. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modified Average Function | Excel Worksheet Functions | |||
average function in Excel 2002 | New Users to Excel | |||
Average If Question | Excel Discussion (Misc queries) | |||
Average If Question | Excel Discussion (Misc queries) | |||
a question regarding dynamic ranges and charts | Charts and Charting in Excel |