Capture.JPG
please refer to image for better understanding
I have 4 columns Total Amount(E2) and Tax Code(F2) Customs and Sales Tax Rate (g2)
There are 2 tax codes 1 and 2
i want to calculate the Customs and Sales Tax Rate using this criteria
if Tax code ($f3) = 1 and Value for total Amount($e3) in the equal to or greater then than value in cell $M$5 and equal to or less then the Value in cell $N$5 if yes then $e3 multiply by $0$5
Else if Tax code ($f3) = 1 and Value for total Amount($e3) in the equal to or greater then than value in cell $M$4 and equal to or less then the Value in cell $N$4 if yes then $e3 multiply by $0$4
Else if Tax code ($f3) = 2 and Value for total Amount($e3) in the equal to or greater then than value in cell $M$11 and equal to or less then the Value in cell $N$11 if yes then $e3 multiply by $0$11
Else if Tax code ($f3) = 2 and Value for total Amount($e3) in the equal to or greater then than value in cell $M$10 and equal to or less then the Value in cell $N$10 if yes then $e3 multiply by $0$10
Else if Tax code ($f3) = 2 and Value for total Amount($e3) in the equal to or greater then than value in cell $M$9 and equal to or less then the Value in cell $N$9 if yes then $e3 multiply by $0$9
i tried this just to test however didnt work. i tried a few combinations was unsuccessful
=if($f3=1 And($E3=>$M$5, $ $E3=>$N$5),$E3*$O$5,if($f3=1 And($E3=>$M$4, $ $E3=>$N$4),$E3*$O$4))
Bookmarks