Thread: iferror
View Single Post
  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default iferror

Try this:

=IF(G5/51,F5/G5,IFERROR(G5/F5,0))


--
Biff
Microsoft Excel MVP


"Roy Gudgeon" wrote in message
...
Hi Guys

I am currently using office 2007
I have a large spreadsheet that uses the following formula:

=IF(G5/51,F5/g5,g5/f5)

This produces a "div/0" error from time to time when the values in G5 & F5
are 0
I have been trying to use iferror to resolve this to report 0 but keep
getting an error message suggesting either a problem with the formula or
not
enough arguments etc....

Any suggestions as to the correct formula ?

thanks
Roy