Numbers formula help

i am using the formula (A+B)x0.029+.30 which returns at least 0.3. I need a formula that will give me a value greater than 0 only if A+B is greater than 0. Right now 0.3 populates even if the values for A and B are 0. Hopefully this makes sense. Thank you!

Posted on Jun 21, 2018 4:59 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 21, 2018 8:20 PM

Hi Reid,


Try this version:


IF((A2+B2)≤0,"",(A2+B2)×0.029+0.3)

User uploaded file

Regards,

Barry


EDIT: Replaced image with one containing a 0, 0 example.

13 replies

Jun 22, 2018 8:28 AM in response to Reid6887

Reid6887 wrote:


..only problem now is the field in which that function is in returns a blank field if “A and B” are not populated with something other than 0. How do I make it show a valid number or 0?


The "" in the formula displays a blank cell. If you want a 0 to be displayed instead, you can replace the "" with 0.


SG

Jun 22, 2018 4:49 AM in response to Barry

Barry,


if I am understanding your formula correctly, it reads as "if D43+E43 is less than or equal to 0, then (referred to as "") it should return a value equal to the equation in the second paragraph, correct? I updated the equation on both line 42 and line 43, with real values populated in D42 and E42, which returns exactly what I want, then zero populated in line 43, which returns a blank value in cell F43. Essentially what I need is if real values are populated in the D and E cells, then I want (D+E) x 0.029+.3 to populate in the F cell. If zero is populated in D and E cells on a line (which it will automatically when I add a new line), I want the F cell to show zero until D and E cells show a real number.


User uploaded file

Jun 22, 2018 8:33 AM in response to Reid6887

Hi Reid,


What "valid number" do you want column F to show when both D and E are empty?

What "valid number" do you want column F to show when D contains 0 and E is empty?

What "valid number" do you want column F to show when D contains 1 and E is empty?

What "valid number" do you want column F to show when D contains 1 and E contains 0?


Does this do what you need?

in F2: IF((D2+E2)≤0,0,(D2+E2)×0.029+0.3)


Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers formula help

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.