You would have to check the math, but perhaps?
=IF(J13="YES",IF(L13<50,L13*LOOKUP(L13,{"Books","Clothing","Electronics","Other"},{0.15,0.12,0.08,0.12}),IF(L13<=1000,L13-50*LOOKUP(L13,{"Books","Clothing","Electronics","Other"},{0.05,0.09,0.05,0.06})+50*LOOKUP(L13,{"Books","Clothing","Electronics","Other"},{0.15,0.12,0.08,0.12}),"What_if_over_1000")),"No")
replace this: "What_if_over_1000" with what you want to happen if L13 is over 1000....
Be careful of order operations in these statements: L13-50*0.05+(0.08*50)
the multiplications happen first, then the result of 50*0.05 is subtracted from L13 and the result of all that is added to 0.08*50
Bookmarks