View Single Post
  #10  
Old May 28th, 2010, 12:22 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Averaging without #DIV0!

Think you don't need to use "average", and this simple IF trap which checks
the denominator cell should suffice:
=IF(C27="","",J29/C27)
--
Max
Singapore
---
"Malcolm" wrote:
I’m using a worksheet that has a cell (C27) that totals rooms and a cell
(J28) that totals rates and a cell (J29) that is the average daily rate
total, rate/total rooms. I’m using the formula =AVERAGE(J28/C27). The only
problem is until I actually input a number into C27 I get the #DIV/0!
displayed in my ADR cell (J29). I don’t always need this data so is there a
way I can input the formula and not have the #DIV/0! in cell J29?
Thanks,
Malcolm