Forum Discussion

DianaC27's avatar
DianaC27
Copper Contributor
Nov 02, 2023
Solved

Can someone tell me why this function isn't working?

=IF($E$35=2, IF($F$35<$F$41, 0, IF($F$35>$F$79, 10500, VLOOKUP($F$35, $F$41:$H$79, 2, FALSE)))), IF($E$35=1, IF($F$35<$F$41, 0, IF($F$35>$F$79, 3900, VLOOKUP($F$35, $F$41:$H$79, 3, FALSE))))   I al...
  • Riny_van_Eekelen's avatar
    Nov 02, 2023

    DianaC27 You had a parenthesis in the wrong place. The following formula does not give the #VALUE error, though I can not judge if the result is correct as you provided no test data.

    =IF($E$35=2,IF($F$35<$F$41,0,IF($F$35>$F$79,10500,VLOOKUP($F$35,$F$41:$H$79,2,FALSE))),IF($E$35=1,IF($F$35<$F$41,0,IF($F$35>$F$79,3900,VLOOKUP($F$35,$F$41:$H$79,3,FALSE)))))

     

    The red parenthesis should move all the way to the end.

    =IF($E$35=2, IF($F$35<$F$41, 0, IF($F$35>$F$79, 10500, VLOOKUP($F$35, $F$41:$H$79, 2, FALSE)))), IF($E$35=1, IF($F$35<$F$41, 0, IF($F$35>$F$79, 3900, VLOOKUP($F$35, $F$41:$H$79, 3, FALSE))))

Resources