ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   DIV/0 (https://www.excelbanter.com/excel-discussion-misc-queries/138339-div-0-a.html)

hwhitford

DIV/0
 
I am getting error DIV/0. I know I need to use the ISERROR function,
however I'm not sure where to insert it. The formula I am using is
below. I know I will have cell divided by Zero and want to keep it
that way. But I don't want the DIV/0 to appear and I don't want to
white it out either.

=IF(SUM($K57:Y57)=$J57,0,IF(Z$1=$I57,($J57-
SUM($K57:Y57))*HLOOKUP($H57+Z$1-$I57,INP2006,$G57,FALSE)/
SUM(INDIRECT(CONCATENATE("'",$F57,"'","!",HLOOKUP( $H57+Z$1-
$I57,INP2006,2,FALSE),$G57)):INDIRECT(CONCATENATE( "'",
$F57,"'","!",HLOOKUP(HLOOKUP(10000,INP2006,1,TRUE) ,INP2006,2,FALSE),
$G57))),""))


Dave F

DIV/0
 
=IF(ISERROR(IF(SUM($K57:Y57)=$J57,0,IF(Z$1=$I57, ($J57-
SUM($K57:Y57))*HLOOKUP($H57+Z$1-$I57,INP2006,$G57,FALSE)/
SUM(INDIRECT(CONCATENATE("'",$F57,"'","!",HLOOKUP( $H57+Z$1-
$I57,INP2006,2,FALSE),$G57)):INDIRECT(CONCATENATE( "'",
$F57,"'","!",HLOOKUP(HLOOKUP(10000,INP2006,1,TRUE) ,INP2006,2,FALSE),
$G57))),"")),"",=IF(SUM($K57:Y57)=$J57,0,IF(Z$1= $I57,($J57-
SUM($K57:Y57))*HLOOKUP($H57+Z$1-$I57,INP2006,$G57,FALSE)/
SUM(INDIRECT(CONCATENATE("'",$F57,"'","!",HLOOKUP( $H57+Z$1-
$I57,INP2006,2,FALSE),$G57)):INDIRECT(CONCATENATE( "'",
$F57,"'","!",HLOOKUP(HLOOKUP(10000,INP2006,1,TRUE) ,INP2006,2,FALSE),
$G57))),"")))

--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"hwhitford" wrote:

I am getting error DIV/0. I know I need to use the ISERROR function,
however I'm not sure where to insert it. The formula I am using is
below. I know I will have cell divided by Zero and want to keep it
that way. But I don't want the DIV/0 to appear and I don't want to
white it out either.

=IF(SUM($K57:Y57)=$J57,0,IF(Z$1=$I57,($J57-
SUM($K57:Y57))*HLOOKUP($H57+Z$1-$I57,INP2006,$G57,FALSE)/
SUM(INDIRECT(CONCATENATE("'",$F57,"'","!",HLOOKUP( $H57+Z$1-
$I57,INP2006,2,FALSE),$G57)):INDIRECT(CONCATENATE( "'",
$F57,"'","!",HLOOKUP(HLOOKUP(10000,INP2006,1,TRUE) ,INP2006,2,FALSE),
$G57))),""))




All times are GMT +1. The time now is 02:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com