Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Could someone please help me figure out why the following formula is
producing a #value error? =AVERAGE(IF((YEAR(AC9:AC74)=2008),AD9:AD74)) I entered it as an array as well. Thanks, Diane |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Do you have non-dates (or non-numeric) data in ac9:ac74?
If you have strings you can't change, maybe: =AVERAGE(IF(text(AC9:AC74,"yyyy")="2008",AD9:AD74) ) diaare wrote: Could someone please help me figure out why the following formula is producing a #value error? =AVERAGE(IF((YEAR(AC9:AC74)=2008),AD9:AD74)) I entered it as an array as well. Thanks, Diane -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Diarre --
A different approach. If you've got dates in the AC column, then this formula will work. Remember it's an 'array' or CSE formula, which means that after you enter it you need to press Ctrl-Shift-Enter rather than just Enter. It will appear {surrounded by curly brackets}. =AVERAGE(IF(YEAR(A1:A10)=2008,B1:B10)) Just substitute my A&B ranges for your AC & AD ranges. HTH "diaare" wrote: Could someone please help me figure out why the following formula is producing a #value error? =AVERAGE(IF((YEAR(AC9:AC74)=2008),AD9:AD74)) I entered it as an array as well. Thanks, Diane |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to match date criteria then calculate an average of matches | Excel Worksheet Functions | |||
Calculate average based on date and other criteria | Excel Discussion (Misc queries) | |||
Average given criteria, HELP! | Excel Worksheet Functions | |||
Error Handling #N/A with AVERAGE Function - Average of values in Row | Excel Worksheet Functions | |||
Average Formula with Criteria | Excel Discussion (Misc queries) |