daverage

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

Forum home » Delegate support and help forum » Microsoft Excel Training and help » =DAVERAGE

=DAVERAGE

resolvedResolved · Low Priority · Version 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:

Validating text entries

1. Select the range of cells.
2. From the Data menu, select Validation.
3. Select the Settings tab.
4. From the Allow dropdown list, select Custom.
5. In the Formula box, enter the following formula:

=IsText (A1)

where A1 is the first cell in the range.
6. Click OK.

View all Excel hints and tips


Server loaded in 0.09 secs.