Returning a zero

D

Dena

I have a worksheet with 2 sheets. The first sheet has all formulas and
depends on the second sheet. I need a formula in sheet 1 that subtracts cell
a1 from cell b1 but if cell a1 is zero I want the formula to return a zero.
Is this possible?
 
F

Fred Smith

Certainly. Use something like:
=if(sheet2!a1=0,0,sheet2!b1-sheet2!a1)

Regards,
Fred.
 
Top