Rounding Table Formula

DS1974

New Member
Joined
Apr 4, 2018
Messages
1
hi guys
i have a pricing template that i want to implement to round up price points

what's the formula please?

BetweenRound Up To
$ 0.01 $ 0.27 $ 0.28
$ 0.29 $ 0.47 $ 0.48
$ 0.49 $ 0.67 $ 0.68
$ 0.69 $ 0.77 $ 0.78
$ 0.79 $ 0.86 $ 0.87
$ 0.88 $ 0.97 $ 0.98
eg
$ 27.01 $ 27.28
$ 27.70 $ 27.78

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


thanks guys - Darcy
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

try this:


Book1
ABCDEF
1Between$ -Round Up To
2$ 0,01$ 0,27$ 0,28
3$ 0,29$ 0,47$ 0,48
4$ 0,49$ 0,67$ 0,68
5$ 0,69$ 0,77$ 0,78
6$ 0,79$ 0,86$ 0,87
7$ 0,88$ 0,97$ 0,98
8
9
10eg
11$ 27,01$ 27,28$ 27,28
12$ 27,70$ 27,78$ 27,78
Sheet1
Cell Formulas
RangeFormula
F11=TRUNC(A11)+LOOKUP(A11-TRUNC(A11),$B$1:$B$7,$D$2:$D$7)
 
Last edited:
Upvote 0
Hi,

Use my formula in F11 if you can modify your Table as shown in my sample, or use my formula in D11 which has the Table built into the formula:


Excel 2010
ABCDF
1BetweenRound Up To
2$0.01$0.27$0.28
3$0.29$0.47$0.48
4$0.49$0.67$0.68
5$0.69$0.77$0.78
6$0.79$0.86$0.87
7$0.88$0.97$0.98
8$0.99$0.99$0.99
9
10eg
11$27.00$27.00$27.00
12$27.27$27.28$27.28
13$27.28$27.28$27.28
14$27.70$27.78$27.78
15$27.97$27.98$27.98
16$27.98$27.98$27.98
17$27.99$27.99$27.99
Sheet8
Cell Formulas
RangeFormula
D11=TRUNC(A11)+LOOKUP(ROUND(MOD(A11,1),2),{0,0.01,0.28,0.29,0.48,0.49,0.68,0.69,0.78,0.79,0.87,0.88,0.98,0.99},{0,0.28,0.28,0.48,0.48,0.68,0.68,0.78,0.78,0.87,0.87,0.98,0.98,0.99})
F11=TRUNC(A11)+SUMIFS(D$2:D$8,A$2:A$8,"<="&ROUND(MOD(A11,1),2),D$2:D$8,">="&ROUND(MOD(A11,1),2))


Either formula copied down as needed.

FYI, the formula provided in Post #2 will fail with values like $27.00, 27.99, and at All Rounding points.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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