Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

daverage

ResolvedVersion 2003

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.

Edited on Thu 15 Oct 2009, 06:10

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

Wed 21 Oct 2009: Automatically marked as resolved.

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Adding date and time

Here are two quick ways to add the date and time to your spreadsheet:

1) Type =NOW(), which displays both date and time in the same cell
or
2) Hold Ctrl and type the colon (:) into one cell for the date and the semi-colon(;)into another for the time.

Note that =NOW() updates to the current date/time whenever the spreadsheet recalculates.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.