Perfect...Thank you so much bosco_yip. Really appreciated it very much.Another shorter possible………
In C3 copy down :
=LOOKUP(A3,F$2:H$2,INDEX(F$3:H$6,MATCH(B3,E$3:E$6,0),0))+(A3>20)*INDEX(I$3:I$6,MATCH(B3,E$3:E$6,0))*(A3-20)
Regards
Thank you Nebu, I will try to incorporate your formula and check it later, as I have found bosco_yip's formula shorter and working for me. Appreciate your response.Hi:
=IFERROR(IF(A3>20,INDEX($F$3:$I$6,MATCH(B3,$E$3:$E$6,0),MATCH(LOOKUP(A3,$F$2:$H$2,$F$2:$H$2),$F$2:$H$2,0))+(A3-20)*INDEX($I$3:$I$6,MATCH(B3,$E$3:$E$6)),INDEX($F$3:$I$6,MATCH(B3,$E$3:$E$6,0),MATCH(LOOKUP(A3,$F$2:$H$2,$F$2:$H$2),$F$2:$H$2,0))),"")
Is this what you are looking for?
Thanks
Thank you once again Nebu, Looking forward for your help in any future stumbles like this.Hi:
Bosco's response is the same logic I have used , it just that it is bit shorter
Thanks