Originally Posted by
etaf
this should give you the price as descibed
=IF(INVOICE!A2="Product A",IF(AND(PRODUCT!B2<=-10,PRODUCT!C2>=10,PRODUCT!D3<=-10,PRODUCT!E3>=10,PRODUCT!F4<=-10,PRODUCT!G4>=10),10,11),IF(INVOICE!A2="Product B",IF(AND(PRODUCT!B2<=-15,PRODUCT!C2>=15,PRODUCT!D3<=-15,PRODUCT!E3>=15,PRODUCT!F4<=-15,PRODUCT!G4>=15),50,52),"Not Product A or B"))
you could also use vlookup to get the other values off the product sheet
on your invoice you have
SPH CYL
BUT on the Product sheet you have
SPH MIN SPH MAX CYL MIN CYL MAX
so not sure which one you want to pickup
This maynot works as I assume you will have 100's of products
so we need to use a vlookup or indexmatch to obtain the values
Thanks again etaf, yes my original pricelist have 30 product and my example only 2 product need short formula or i change product list like this :
I think it can be easier with this separate table where value min to max, but sorry if my table make you confuse maybe i must remove SHEET1 (PRODUCT) :
Ok give me time for try google with example about logical optical lenses and learn more vlookup, i'm must avoid bad question.
Thanks - John
Bookmarks