Thread: No negatives
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default No negatives

Hard to get much easier, but how about

=Max(0,A1-A2)

--
Regards,
Tom Ogilvy

"PCOR" wrote in message
...
Assume numbers in A1 and A2
I want to get the difference between A1 minus A2 but only if the answer is
NOT negative.I want to dispay 0 if then answer is negative.
I have been using =if (a1A2,A1-A2,0)
is there an easier way?
Thanks

--
Norton Professional 2004 says this email is clean...believe it