Thread: Difference
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
hot dogs hot dogs is offline
external usenet poster
 
Posts: 54
Default Difference

to produce the result using one cell use
=if((A-B)<=0,((A-B)+(2*(0-(A-B)))),(A-B))

"Stevep-4" wrote:

I am sure there is a very simple answer to this.

I need to calulate the difference between 2 cells (each cell is a SUM of the
information of other cells).

the content of each of these cells could be +ve or -ve. Thus, if A is -45
and B is 200, then the difference is 245.

Is there a simple was of doing this, rather than a long winded IF IF IF
command.