#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Problem with average

I have 3 sections in this spreadsheet. Leads, Sales and Success Rate.
Success rate = Sales/Leads. The data is for Jan-Dec. When someone has zero
leads and zero sales I end up with a /0 error.

The problem is as I average the success rates together if there is an error
in a cell it doesnt count that cell. So if Jan is 50%, Feb is 0% and March
gives an error, the average is 25%. But it should be (.5 +0+0)/3 How do I
make the error cell equal to zero for average to be correct?

I am already using a condition function to make the error cell read as 0%
for the average purpose it treats it as an error. Please help
--
yodone
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Problem with average

This is one case in which you can have your choise. Say we have cells in
column C like:

=A1/B1
=A2/B2
=A3/B3

and we have another cell with =AVERAGE(C:C)

clearly if B3 is zero, C3 will show and error and AVERAGE() is impacted.


If we want to exclude errors, then in C3:
=IF(ISERROR(A3/B3),"",A3/B3)

If we want to include errors as zero, then in C3:
=IF(ISERROR(A3/B3),0,A3/B3)
--
Gary''s Student - gsnu200779


"Moperk23" wrote:

I have 3 sections in this spreadsheet. Leads, Sales and Success Rate.
Success rate = Sales/Leads. The data is for Jan-Dec. When someone has zero
leads and zero sales I end up with a /0 error.

The problem is as I average the success rates together if there is an error
in a cell it doesnt count that cell. So if Jan is 50%, Feb is 0% and March
gives an error, the average is 25%. But it should be (.5 +0+0)/3 How do I
make the error cell equal to zero for average to be correct?

I am already using a condition function to make the error cell read as 0%
for the average purpose it treats it as an error. Please help
--
yodone

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Problem with average

Moperk23,
Let's assume that column A is Leads, Column B is Sales, and Column C is
Success Rate. Place this formula in Column C and it will resolve your problem.
=IF(A1=0,0,B1/A1)
This says "If Leads are zero, then show a 0, otherwise divide sales by leads
and show the result"
Now with a zero in place of your div/0 error, your average will work.

"Moperk23" wrote:

I have 3 sections in this spreadsheet. Leads, Sales and Success Rate.
Success rate = Sales/Leads. The data is for Jan-Dec. When someone has zero
leads and zero sales I end up with a /0 error.

The problem is as I average the success rates together if there is an error
in a cell it doesnt count that cell. So if Jan is 50%, Feb is 0% and March
gives an error, the average is 25%. But it should be (.5 +0+0)/3 How do I
make the error cell equal to zero for average to be correct?

I am already using a condition function to make the error cell read as 0%
for the average purpose it treats it as an error. Please help
--
yodone

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
Average Problem Paul Excel Worksheet Functions 3 February 10th 07 04:44 PM
LOOKUP/AVERAGE problem JjL Excel Worksheet Functions 3 March 19th 06 04:37 AM
IF/THEN Average Problem raspywench Excel Worksheet Functions 16 November 11th 05 09:54 PM
AVERAGE(IF()) problem J Excel Worksheet Functions 1 November 10th 05 10:36 PM
AVERAGE problem malik641 Excel Worksheet Functions 3 July 21st 05 04:04 AM


All times are GMT +1. The time now is 09:23 PM.

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"