ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   calculated field (https://www.excelbanter.com/excel-programming/398634-calculated-field.html)

geebee

calculated field
 
hi,

i have a pivot table in which i entered a calculated field. some of the
values have a #DIV/0! so i thought i would try to modify the formula to be
somehting like :

if (iserror('field1'/'field2'),"0",'field1'/'field2'))

but i am getting an error.

what should i do?

thanks in advance,
geebee


JRForm

calculated field
 
geebee,

Try =if(field2<0,field1/field2,0)
or
=IF(ISERROR(Field1/Field2),0,(Field1/Field2))

"geebee" wrote:

hi,

i have a pivot table in which i entered a calculated field. some of the
values have a #DIV/0! so i thought i would try to modify the formula to be
somehting like :

if (iserror('field1'/'field2'),"0",'field1'/'field2'))

but i am getting an error.

what should i do?

thanks in advance,
geebee



All times are GMT +1. The time now is 03:46 PM.

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