Price list roundup with different parameter

nazeem

New Member
Joined
May 26, 2016
Messages
27
BarcodePriceResult
11002200209543.753545
220000000001978.7580
2200000000026105105
2200000000033105105
2200000000040105105
2200000000057105105
2200000000064175.0035175
220000000007152.555
220000000009515.7516
220000000010130.628531
220000000011830.628531
220000000012552.555
220000000017052.555
220000000018752.555
220000000032531.532
220000000055231.532
220000000056943.753544
220000000057626.2527
220000000058334.996535
220000000059043.0544
220000000060626.2527
6291100001004 75.0004575
6291100004003115.0002115
62911006847170.87150.88
62911006847240.78750.79
62911006847310.3990.4
62911006847480.5250.53
62911006847550.3990.4
62911006847620.5250.53
62911006847860.5250.53
62911006899416.36.3

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>

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.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,231
Office Version
365
Platform
Windows
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.
 

Forum statistics

Threads
1,081,798
Messages
5,361,356
Members
400,628
Latest member
teresajm

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top