View Single Post
  #1   Report Post  
bala_vb bala_vb is offline
Senior Member
 
Location: Hyderabad
Posts: 237
Thumbs up

Quote:
Originally Posted by Malcolm View Post
Im 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. Im 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 dont 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


if you are using excel 2007, refer iserror function. it will throw empty "" when error generates.

iserror(AVERAGE(J28/C27),"",AVERAGE(J28/C27)).

all the best
__________________
Thanks
Bala