Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am new to Excel formulas. I assume i need an IF statement but not sure on
correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
#2
![]() |
|||
|
|||
![]()
Hi
=IF(D2-B20,D2-B2,"") "superfooz74" wrote: I am new to Excel formulas. I assume i need an IF statement but not sure on correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
#3
![]() |
|||
|
|||
![]()
=if(d2-b20,d2-b2,"")
"superfooz74" wrote in message ... I am new to Excel formulas. I assume i need an IF statement but not sure on correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
#4
![]() |
|||
|
|||
![]()
Thank you for such a quick and accurate response.
"Frank Kabel" wrote: Hi =IF(D2-B20,D2-B2,"") "superfooz74" wrote: I am new to Excel formulas. I assume i need an IF statement but not sure on correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
#5
![]() |
|||
|
|||
![]()
Hi
you're welcome :-) "superfooz74" wrote: Thank you for such a quick and accurate response. "Frank Kabel" wrote: Hi =IF(D2-B20,D2-B2,"") "superfooz74" wrote: I am new to Excel formulas. I assume i need an IF statement but not sure on correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
#6
![]() |
|||
|
|||
![]()
That depends on what you want to happen in the cell if D2 < B2.
Contain 0: =MAX(D2-B2,0) Contain empty string: =IF(D2B2,D2-B2,"") Contain negative number but hide it from view: Menu Format Conditional formatting, criteria: value < 0 format: text color same as background color. Contain negative number but display zero: Format Cells Number Custom number format 0;"0" (or maybe it's a comma instead of a semicolon) HTH. Best wishes Harald "superfooz74" skrev i melding ... I am new to Excel formulas. I assume i need an IF statement but not sure on correct syntax =D2-B2 is what i have now, what can i add to it so that it only displays values 0? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excell only displays the formula, not the results | Excel Discussion (Misc queries) | |||
Find & Replace results to display specified chosen fields | Excel Discussion (Misc queries) | |||
Excel: To Display Formula in the cells Instead of Value | Excel Discussion (Misc queries) | |||
I want the results of a formula to show in cell, NOT THE FORMULA! | Excel Discussion (Misc queries) | |||
Paste is is copying in formula, but display is wrong. | Excel Discussion (Misc queries) |