David has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
=DAVERAGE
I want to display an error message when no items satisfy the criteria set in the formula rather than provide the average of all the data as a default answer.
RE: =DAVERAGE
Please use If condition to embed your message along with the daverage function.
RE: =DAVERAGE
If you need further assistance on embedding If condition with daverage,
Ex:
IF(average(range)<=daverage(database, field, criteria), "ERROR MESSAGE",daverage(database, field, criteria))
if daverage picks up default average for not satisfying any criteria, then it will give you the normal average of all numbers, so obviously match your average() function, if so, then the true case of yours will print the error message you need....
-Viji