Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Iserror function in combination with average

Hi,
The formula below looks for personnel in a certain group (column J) and
within that group a certain age (column O) and then gives me the average
salary (from column P). Where there are no persons with a certain age I get
#DIV/0 as result. I want to use the ISERROR function to not display the
#DIV/0. Is it possible?, if yes, where should I enter it. It constantly gives
me that my formula contains an error.
Thanks & Regards, Lupe

=AVERAGE(IF((ISNUMBER('[All Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$J$2:$J$991))=$B15,(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$O$2:$O$991))=D$2,'[All
Personnel.xls]downloaded'!$P$2:$P$991))))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Iserror function in combination with average

Hi,
I kept looking and found a solution on
http://www.excel-vba.com/excel-10-iserror.htm. It helped, hope this was the
best solution as now my formula is as big as ever.

=IF(ISERROR(AVERAGE(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$J$2:$J$991))=$B15,(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$O$2:$O$991))=D$2,'[All
Personnel.xls]downloaded'!$P$2:$P$991)))))," ",AVERAGE(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$J$2:$J$991))=$B5,(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$O$2:$O$991))=D$2,'[All
Personnel.xls]downloaded'!$P$2:$P$991)))))

"Lupe" wrote:

Hi,
The formula below looks for personnel in a certain group (column J) and
within that group a certain age (column O) and then gives me the average
salary (from column P). Where there are no persons with a certain age I get
#DIV/0 as result. I want to use the ISERROR function to not display the
#DIV/0. Is it possible?, if yes, where should I enter it. It constantly gives
me that my formula contains an error.
Thanks & Regards, Lupe

=AVERAGE(IF((ISNUMBER('[All Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$J$2:$J$991))=$B15,(IF((ISNUMBER('[All
Personnel.xls]downloaded'!$P$2:$P$991))*(('[All
Personnel.xls]downloaded'!$O$2:$O$991))=D$2,'[All
Personnel.xls]downloaded'!$P$2:$P$991))))

Reply
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
Help with Combination function Santhosh Mani Excel Worksheet Functions 1 December 14th 05 04:39 PM
Excel ISERROR function MarkD Excel Worksheet Functions 1 December 12th 05 10:13 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
How do I throw in an ISERROR function on a complicated VVLOOKUP? KenRamoska Excel Discussion (Misc queries) 2 June 20th 05 03:10 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM


All times are GMT +1. The time now is 04:50 PM.

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

About Us

"It's about Microsoft Excel"