Price list roundup with different parameter

nazeem

New Member
Joined
May 26, 2016
Messages
27
[TABLE="width: 227"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Barcode[/TD]
[TD]Price[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]110022002095[/TD]
[TD="align: right"]43.7535[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]2200000000019[/TD]
[TD="align: right"]78.75[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]2200000000026[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]105[/TD]
[/TR]
[TR]
[TD]2200000000033[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]105[/TD]
[/TR]
[TR]
[TD]2200000000040[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]105[/TD]
[/TR]
[TR]
[TD]2200000000057[/TD]
[TD="align: right"]105[/TD]
[TD="align: right"]105[/TD]
[/TR]
[TR]
[TD]2200000000064[/TD]
[TD="align: right"]175.0035[/TD]
[TD="align: right"]175[/TD]
[/TR]
[TR]
[TD]2200000000071[/TD]
[TD="align: right"]52.5[/TD]
[TD="align: right"]55[/TD]
[/TR]
[TR]
[TD]2200000000095[/TD]
[TD="align: right"]15.75[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]2200000000101[/TD]
[TD="align: right"]30.6285[/TD]
[TD="align: right"]31[/TD]
[/TR]
[TR]
[TD]2200000000118[/TD]
[TD="align: right"]30.6285[/TD]
[TD="align: right"]31[/TD]
[/TR]
[TR]
[TD]2200000000125[/TD]
[TD="align: right"]52.5[/TD]
[TD="align: right"]55[/TD]
[/TR]
[TR]
[TD]2200000000170[/TD]
[TD="align: right"]52.5[/TD]
[TD="align: right"]55[/TD]
[/TR]
[TR]
[TD]2200000000187[/TD]
[TD="align: right"]52.5[/TD]
[TD="align: right"]55[/TD]
[/TR]
[TR]
[TD]2200000000325[/TD]
[TD="align: right"]31.5[/TD]
[TD="align: right"]32[/TD]
[/TR]
[TR]
[TD]2200000000552[/TD]
[TD="align: right"]31.5[/TD]
[TD="align: right"]32[/TD]
[/TR]
[TR]
[TD]2200000000569[/TD]
[TD="align: right"]43.7535[/TD]
[TD="align: right"]44[/TD]
[/TR]
[TR]
[TD]2200000000576[/TD]
[TD="align: right"]26.25[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD]2200000000583[/TD]
[TD="align: right"]34.9965[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD]2200000000590[/TD]
[TD="align: right"]43.05[/TD]
[TD="align: right"]44[/TD]
[/TR]
[TR]
[TD]2200000000606[/TD]
[TD="align: right"]26.25[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD]6291100001004[/TD]
[TD="align: right"] 75.00045[/TD]
[TD="align: right"]75[/TD]
[/TR]
[TR]
[TD]6291100004003[/TD]
[TD="align: right"]115.0002[/TD]
[TD="align: right"]115[/TD]
[/TR]
[TR]
[TD]6291100684717[/TD]
[TD="align: right"]0.8715[/TD]
[TD="align: right"]0.88[/TD]
[/TR]
[TR]
[TD]6291100684724[/TD]
[TD="align: right"]0.7875[/TD]
[TD="align: right"]0.79[/TD]
[/TR]
[TR]
[TD]6291100684731[/TD]
[TD="align: right"]0.399[/TD]
[TD="align: right"]0.4[/TD]
[/TR]
[TR]
[TD]6291100684748[/TD]
[TD="align: right"]0.525[/TD]
[TD="align: right"]0.53[/TD]
[/TR]
[TR]
[TD]6291100684755[/TD]
[TD="align: right"]0.399[/TD]
[TD="align: right"]0.4[/TD]
[/TR]
[TR]
[TD]6291100684762[/TD]
[TD="align: right"]0.525[/TD]
[TD="align: right"]0.53[/TD]
[/TR]
[TR]
[TD]6291100684786[/TD]
[TD="align: right"]0.525[/TD]
[TD="align: right"]0.53[/TD]
[/TR]
[TR]
[TD]6291100689941[/TD]
[TD="align: right"]6.3[/TD]
[TD="align: right"]6.3[/TD]
[/TR]
</tbody>[/TABLE]

All price below 10 will have the no price change.

10-40 range all will round off to next number.

40 and above will be round off to next 5th number.

All figures should have max 2 decimal.

Thanks in advance.

Appreciate your effort.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I don't understand some of your examples.

0.8715
According to your written instructions, this value should have no change (because < 10) but be a max of 2 decimal places. By my reckoning that should give 0.87, not 0.88 per your example results.

43.05
"40 and above will be round off to next 5th number". How do you calculate that the "next 5th number" in that case is 44, not 45?

43.7535
Same as the last example.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top