Forum Discussion

Nickerz_2020's avatar
Nickerz_2020
Brass Contributor
May 13, 2021
Solved

How Do I Calculate Different Cells Using Different Formulas?

I have multiple cells that require different calculations within the formula (I should also point out, that one the cells (Q5) is SOMETIMES a negative number and other times it's positive). Below is ...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    May 14, 2021

    Nickerz_2020 

    Try this:

    =(N5+Q5*(Q5<0))*C5+B6

     The part (Q5<0) return TRUE (or 1) is Q5 is negative, FALSE (or 0) if positive. Hence, in the first instance you will multiply Q5 by 1, in the other instance Q5 by zero.

Resources