Thread: No negatives
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Myrna Larson Myrna Larson is offline
external usenet poster
 
Posts: 863
Default No negatives

=MAX(A1-A2,0)


On Thu, 27 Jan 2005 13:23:16 -0500, "PCOR" wrote:

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