Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default No negatives

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying negatives with (brackets) gew Excel Discussion (Misc queries) 3 March 10th 10 07:13 AM
Eliminate Negatives MCheru Excel Worksheet Functions 3 March 6th 09 01:03 AM
Help, my columns are negatives! -- bug? Del Cotter Charts and Charting in Excel 6 November 6th 06 07:07 PM
Positives and Negatives Niagera College Student Excel Worksheet Functions 2 September 20th 05 10:28 PM
multiply negatives Penny Excel Discussion (Misc queries) 5 March 22nd 05 11:37 PM


All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"