paul29berks
Active Member
- Joined
- Mar 15, 2004
- Messages
- 293
I have this formula:
=IF(AND($D$174=0,$Z$174=0),CG$174*($Z$169+$AP$169)/($Z$174+$AP$174),IF(AS$174=0,CG$174*($BN$169+$CD$169)/($BN$174+$CD$174),CG$174*($BN$169/$BN$174)))
However there are instances where I am dividing by 0 and receive the following error - does anyone know how I can prevent this by building into this formula?
Thanks
=IF(AND($D$174=0,$Z$174=0),CG$174*($Z$169+$AP$169)/($Z$174+$AP$174),IF(AS$174=0,CG$174*($BN$169+$CD$169)/($BN$174+$CD$174),CG$174*($BN$169/$BN$174)))
However there are instances where I am dividing by 0 and receive the following error - does anyone know how I can prevent this by building into this formula?
Thanks