Forum Discussion

Alison Flynn's avatar
Alison Flynn
Brass Contributor
Jan 15, 2019
Solved

Something wrong with this formula, but can't figure it out?

Hi,   I have a formula that doesn't seem to be working - I wonder if someone might spot where it's incorrect?     =IF(AND(AT34>=40,H34="M"),0,IF(AND(AT34>=37,H34="M"),5,10,IF(AND(AT34>=35,H34="F"...
  • SergeiBaklan's avatar
    SergeiBaklan
    Jan 15, 2019

    Nope, the logic is unclear. One condition is

    Also if the BMI is under 25 the score in both cases it is also 10, over 25 it's a 5 and over 30 it's a zero score.

    or

    =IF(AP34>=30,0,
       IF(AP34>=25,5,10))
    

    which doesn't care of which gender is defined and covers all possible values in AP34.

    If you want to check the gender independently of above, when like

    =IF(H34="M",
          IF(AT34>=40,0,
          IF(AT34>=37,5,10)),
       IF(H34="F",
          IF(AT34>=35,0,
          IF(AT34>=31.5,5,10)),
          "Gender is not defined"
       ))
    

    which covers all possible values in AT34 and any gender if defined.

     

    Thus one or other

Resources