I am trying to create a formula where a vendor can enter their box quantity minimum of 6 or 12, and then have that input be scaled *2, *3, *4 etc. in my formula to compare another column.
Currently I have a formula with a vendor whose box quantity is known, and that looks like:
=IF(D9=0,0,IF(AND(D9>0,D9<=12),12,IF(AND(D9>12,D9<=24),24,D9)))
The formula is much larger going up to box quantity of 300, I am sure there is a better way to write the formula as well I just have not put time into improving it so it is not so long.
So I tried changing it where the box quantity 12 is now to be the box where the vendor can input their quantity.
=IF(D9=0,0,IF(AND(D9>0,D9<=(I9*2),12,IF(AND(D9>12,D9<=(I9*3),24,D9)))
This is not working so I am wondering if there is a better way to write this formula, or to get around this error?