ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF function (https://www.excelbanter.com/excel-discussion-misc-queries/245847-if-function.html)

Davidinsf

IF function
 
Hi I am trying to put a formula together it's quite easy but I can't figure
it out. What I want to do is subtract cell C3 from C2 and place the results
in C4 but only if there is more than 0 in C3, if there is zero in C3 I just
want a zero in C4 and not what is in C2. I have tried "if" and "sumif"
functions.

JBeaucaire[_130_]

IF function
 
Try this in C4:

=IF(C3=0,0,C2-C3)

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Davidinsf" wrote:

Hi I am trying to put a formula together it's quite easy but I can't figure
it out. What I want to do is subtract cell C3 from C2 and place the results
in C4 but only if there is more than 0 in C3, if there is zero in C3 I just
want a zero in C4 and not what is in C2. I have tried "if" and "sumif"
functions.



All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com