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?

[TABLE="width: 298"]
<colgroup><col span="3"><col></colgroup><tbody>[TR]
[TD]Between[/TD]
[TD][/TD]
[TD][/TD]
[TD]Round Up To[/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] $ 0.27[/TD]
[TD][/TD]
[TD] $ 0.28[/TD]
[/TR]
[TR]
[TD] $ 0.29[/TD]
[TD] $ 0.47[/TD]
[TD][/TD]
[TD] $ 0.48[/TD]
[/TR]
[TR]
[TD] $ 0.49[/TD]
[TD] $ 0.67[/TD]
[TD][/TD]
[TD] $ 0.68[/TD]
[/TR]
[TR]
[TD] $ 0.69[/TD]
[TD] $ 0.77[/TD]
[TD][/TD]
[TD] $ 0.78[/TD]
[/TR]
[TR]
[TD] $ 0.79[/TD]
[TD] $ 0.86[/TD]
[TD][/TD]
[TD] $ 0.87[/TD]
[/TR]
[TR]
[TD] $ 0.88[/TD]
[TD] $ 0.97[/TD]
[TD][/TD]
[TD] $ 0.98[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]eg [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] $ 27.01[/TD]
[TD][/TD]
[TD][/TD]
[TD] $ 27.28[/TD]
[/TR]
[TR]
[TD] $ 27.70[/TD]
[TD][/TD]
[TD][/TD]
[TD] $ 27.78[/TD]
[/TR]
</tbody>[/TABLE]


thanks guys - Darcy
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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