Forum Discussion

CEOBlockchain's avatar
CEOBlockchain
Copper Contributor
Dec 27, 2018

How to use the Subtract with IF function ?

Hi everyone,

 

Actually, I need some help about How I can use subtract with IF function Or any other way ?

For example: If A>0 , make (B - C).

 

How I can use it on Excel, Please :)

  • Okay, I've updated the workbook with this formula in AV Balance cell.

    =IF(D6>0,0,10000)

     

    If you want to change the AV Balance, you can change it in the formula from 10000 to something else.

     

    I hope this helps you

    Regards

  • Haytham Amairah's avatar
    Haytham Amairah
    Silver Contributor

    Hi,

     

    Let me show you a simple example as follows.

     

    =IF(A2>0,B2-C2,A2)

     

     

    The above formula says:

    IF cell A2 greater than 0, then subtract cell C2 from B2 and return the result.

    Otherwise, return the value of cell A2 as it is.

     

    Please check out this link to learn more about IF function.

     

    Hope that helps

  • Deanpg7310's avatar
    Deanpg7310
    Copper Contributor
    Hi Guys, I wonder if someone can assist me with my problem. If Column A subtract Column B gives you a negative figure, I would like Column C to indicate "Short" - If it is over, I would like Column C to indicate "Over". How do I write this formula to give me this result.

Resources