LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default #DIV/0! error with DAVERAGE Function

Hi,

You can get DIV/0 errors from the D functions if 1. the Criteria title does
not match any title in the database area. 2. if no entries meet your
criteria, 3. If you did not include the title row of the data area as part of
the first argument in the D function, which obviously is not the case with
your range.

In 2007 you can handle the 2nd one of these with

=IFERROR(DAVERAGE('Perm Recruitment'!A:R,"Days To Fill",D32:F33),"")

Although it makes the formula clearer you might consider replacing "Days To
Fill" with either the column number (withing the database range) or
referencing the cell containing that name.

In 2003 you can handle the 2nd one with

=IF(ISERR(DAVERAGE('Perm Recruitment'!A:R,"Days To
Fill",D32:F33),"",DAVERAGE('Perm Recruitment'!A:R,"Days To Fill",D32:F33))

or shorter:

=IF(SUM('Perm Recruitment'!D:D)=0,"",DAVERAGE('Perm Recruitment'!A:R,"Days
To Fill",D32:F33))

where D is the "Days To Fill" column


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"KLocken" wrote:

Please advise how to fix a #DIV/0! error with a daverage function.

Function string is below and returning #div/0 error

=DAVERAGE('Perm Recruitment'!A:R,"Days To Fill",D32:F33)

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daverage function with rows instead of colums. Dave Excel Worksheet Functions 0 October 13th 06 06:19 PM
daverage PClancy Excel Worksheet Functions 1 August 29th 06 05:10 PM
How to tackle Division by zero for DAVERAGE function Sharma Excel Worksheet Functions 1 November 24th 05 06:34 AM
Daverage nir020 Excel Discussion (Misc queries) 9 November 1st 05 07:47 PM
DAverage Function help needed xrayr Excel Worksheet Functions 3 July 26th 05 04:09 PM


All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"