I am trying to find the right formula/IF statement to determine this:
if D1 is greater than D2, then D3 = the difference between the two, and if D2 is greater than D1, then D3 = 0.
Can anyone help? I use excel every day for basic stuff, but have never had to do an If statement, somehow.
TIA!
Re: Excel gurus... need your help.
=IF(D1<D2,D1+D2,0)
=IF(D1>D2, D1-D2, 0)
The format for if statements is = IF( statement you are testing , what happens if it is true , what happens if it isn't true )
Thanks y'all--perfect!
This is the correct one.