View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe_Germany Joe_Germany is offline
external usenet poster
 
Posts: 25
Default using IF & AND in formula

Mark:
he wants B2-A2 not when A2=B2..

Mark K. wrote:
=If(A2B2,A2+B2,B2-A2)


Latsh wrote:
Hi.
I'm using Excel 2000, in simple terms, I need a formula for the following.
I'm working with numbers.

IF A2 is GREATER than B2, then A2+B2
OR
IF A2 is LESS than B2, then B2-A2

Thanks,
Latsh NJ