Forum Discussion

lucinda1275's avatar
lucinda1275
Copper Contributor
Jan 08, 2020

Help with an nested if statement

=IF(H8>2.9,$D$3*D8),IF(H8>4.9,$D$4*D8),IF(H8<3,$D$2*D8)

 

it returns #VALUE1

 

What's wrong with my formula?

9 Replies

  • lucinda1275's avatar
    lucinda1275
    Copper Contributor
    This works perfectly, thank you. I just need to add another condition if C8=Old =D1 please
  • Twifoo's avatar
    Twifoo
    Silver Contributor
    This is my guess:
    =D8*
    LOOKUP(H8,
    {0;2.9;4.9},
    D$2:D$4)
    • lucinda1275's avatar
      lucinda1275
      Copper Contributor

      SergeiBaklan 

      No, I need to return if H is ❤️ =C2*D2, if H<5=C3*D3, if H = 5 or greater = C4*D4

       

      Does this make sense?

       

       

       

      A             B             C             D

      Old          33           1234       0.016923077

      New 1     28           1950       0.014358974

      New 2     31           860         0.015897436

      New 3     33           435         0.016923077

      • Twifoo's avatar
        Twifoo
        Silver Contributor
        My second guess is:
        =IF(H2<5,
        C3*D3,
        C4*D4)

Resources