This not correct I feel. I have more than 700 such line items.HI!
Try this:
=LOOKUP(B2,{0,6000,21001,48001},{"",0.26,0.24,0.21})
Where B2 is your MOQ
Regards,
Hi,
Post a sample excel file with manually expected output.
Regards,
Thank you for your help...Wait,
I guess you need this:
=IFERROR(INDEX(F3:M3,,MATCH(C3,F3:M3,1)),"")
Regards,
Thanks Bosco... It works perfectly...Or try this,
In D3, copy down :
=IF(C3="","",IFERROR(LOOKUP(C3,N(OFFSET(C3,,{3,6,9})),N(OFFSET(C3,,{4,7,10}))),""))
Regards
Bosco
Thanks Khalid...Hi Sanjay,
What would be your expected answer if Quantity is less than all three MOQ? Say 5000 in C3 ?
If you are expecting Price C to be returned, try:
=IF(C3="","",IF(AND(C3>=F3,C3<I3),G3,IF(AND(C3>=I3,C3<L3),J3,IF(C3<F3,G3,M3))))
This is not recommended if you want Blank, then go with Bosco's solution.
Regards,