Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Displaying negatives with (brackets) | Excel Discussion (Misc queries) | |||
Eliminate Negatives | Excel Worksheet Functions | |||
Help, my columns are negatives! -- bug? | Charts and Charting in Excel | |||
Positives and Negatives | Excel Worksheet Functions | |||
multiply negatives | Excel Discussion (Misc queries) |