Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to input a formula that when I subtract the contents of one cell
from another if the sum is negative, I want a zero to show in the cell. If the sum of the cell is a positive number then I want the sum to show in the cell. This is what I have tried =IF(G4-H4<=0,0). The only problem with it is every time the sum of the cell comes up positive it gives me a false statement. If the sum is positive I want to see that sum. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=MAX(0,G4-H4)
"Christine Haines" wrote: I am trying to input a formula that when I subtract the contents of one cell from another if the sum is negative, I want a zero to show in the cell. If the sum of the cell is a positive number then I want the sum to show in the cell. This is what I have tried =IF(G4-H4<=0,0). The only problem with it is every time the sum of the cell comes up positive it gives me a false statement. If the sum is positive I want to see that sum. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Need another argument to tell Excel what to do if value is not <= 0
=IF(G4-H4<=0,0,G4-H4) Another method.........=MAX(0,G4-H4) Gord Dibben MS Excel MVP On Fri, 29 Sep 2006 11:06:02 -0700, Christine Haines <Christine wrote: I am trying to input a formula that when I subtract the contents of one cell from another if the sum is negative, I want a zero to show in the cell. If the sum of the cell is a positive number then I want the sum to show in the cell. This is what I have tried =IF(G4-H4<=0,0). The only problem with it is every time the sum of the cell comes up positive it gives me a false statement. If the sum is positive I want to see that sum. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It worked! Thank you so much!!!!!
"Gord Dibben" wrote: Need another argument to tell Excel what to do if value is not <= 0 =IF(G4-H4<=0,0,G4-H4) Another method.........=MAX(0,G4-H4) Gord Dibben MS Excel MVP On Fri, 29 Sep 2006 11:06:02 -0700, Christine Haines <Christine wrote: I am trying to input a formula that when I subtract the contents of one cell from another if the sum is negative, I want a zero to show in the cell. If the sum of the cell is a positive number then I want the sum to show in the cell. This is what I have tried =IF(G4-H4<=0,0). The only problem with it is every time the sum of the cell comes up positive it gives me a false statement. If the sum is positive I want to see that sum. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
2 Nesting questions | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions |