Good day,
Some time ago, I was helped through this forum with creating a formula for my boss' product prices but now he wants it to be modified. The current formula is this:
"=FLOOR(J8,10)+IF(J8<=99.99,LOOKUP(MOD(J8,10),{0,1.49,3.99,6.99},{0.97,3.97,5.97,9.97}),LOOKUP(MOD(J8,10),{0,1.49,4.99,9},{0,3,9,10}))" but it is only for 2 conditions (prices from $99.99 and below and prices from $100 and above), the arrays are based on the conditions from then and are different to the ones I need to get to.
I attempted to just modify the arrays but I'm getting N/A as the result in some cells but maybe the formula needs to be rebuilt from scratch(?) and my knowledge only goes so far.
Anyways, the conditions I need to match are the following:
-For prices below $99.99:
Round the last integer before the decimal point to x5.97 or x6.97
Any price that ends in 6, 7, or 8 round them down to x6.97; any price ending on 9, 0, 1, 2, 3, 4, or 5 round them up to x5.97
For example:
27.83, 66.00, 18.20 would now be 26.97, 66.97, 16.97
39.37, 91.00, 63.20 would now be 45.97, 95.97, 65.97
-For prices $100 - $500:
All prices will have the last integer rounded to xx5.00 or xx7.00
No specific array was given for this so the same as above would be okay
-For prices above $500:
All prices ending on xx4, xx5, xx6, and xx7 round them to xx7.00
All prices ending on xx0, xx1, xx2, round them down to xx9.00
All prices ending on xx8 and xx9 round up to xx9.00
For example:
324.67, 655.98 would now be 327.00, 657.00
2001.98, 992.35 would now be 1999.00, 989.00
3998.78, 299.00 would now be 3999.00, 299.00
Hopefully, this makes sense. Any help is appreciated, thank you.
Some time ago, I was helped through this forum with creating a formula for my boss' product prices but now he wants it to be modified. The current formula is this:
"=FLOOR(J8,10)+IF(J8<=99.99,LOOKUP(MOD(J8,10),{0,1.49,3.99,6.99},{0.97,3.97,5.97,9.97}),LOOKUP(MOD(J8,10),{0,1.49,4.99,9},{0,3,9,10}))" but it is only for 2 conditions (prices from $99.99 and below and prices from $100 and above), the arrays are based on the conditions from then and are different to the ones I need to get to.
I attempted to just modify the arrays but I'm getting N/A as the result in some cells but maybe the formula needs to be rebuilt from scratch(?) and my knowledge only goes so far.
Anyways, the conditions I need to match are the following:
-For prices below $99.99:
Round the last integer before the decimal point to x5.97 or x6.97
Any price that ends in 6, 7, or 8 round them down to x6.97; any price ending on 9, 0, 1, 2, 3, 4, or 5 round them up to x5.97
For example:
27.83, 66.00, 18.20 would now be 26.97, 66.97, 16.97
39.37, 91.00, 63.20 would now be 45.97, 95.97, 65.97
-For prices $100 - $500:
All prices will have the last integer rounded to xx5.00 or xx7.00
No specific array was given for this so the same as above would be okay
-For prices above $500:
All prices ending on xx4, xx5, xx6, and xx7 round them to xx7.00
All prices ending on xx0, xx1, xx2, round them down to xx9.00
All prices ending on xx8 and xx9 round up to xx9.00
For example:
324.67, 655.98 would now be 327.00, 657.00
2001.98, 992.35 would now be 1999.00, 989.00
3998.78, 299.00 would now be 3999.00, 299.00
Hopefully, this makes sense. Any help is appreciated, thank you.