One cell formula

JimDina

New Member
Joined
Jan 24, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am looking to create a formula for one cell that basically rounds any number with a decimal (15.3) to the next multiple of 5.

So if I enter 15.3 in cell 1a, I'd like that number to be rounded up to 20 and display in the cell 2b.

Example:

15.0 = 3 (15 divided by 5 = 3)
15.0 entered in cell A1
3 automatically displays in cell 2A

33.5 = 7 (33.5 rounded up to 35 divided by 5 = 7
33.5 entered in cell A1
7 automatically displays in cell 2A

I hope I explained it properly, any help is appreciated.

Thx
Jim
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,

Like this?

Book3.xlsx
AB
11533.5
237
Sheet958
Cell Formulas
RangeFormula
A2:B2A2=MROUND(A1,5)/5
 
Upvote 0
Hi,

Like this?

Book3.xlsx
AB
11533.5
237
Sheet958
Cell Formulas
RangeFormula
A2:B2A2=MROUND(A1,5)/5
Kind of, I’d like to only use 2 cells, entering the number in 1A, then the result shows in 1B.
 
Upvote 0
Kind of, I’d like to only use 2 cells, entering the number in 1A, then the result shows in 1B.

I'm just showing you 2 samples like in your OP, take 1 out.

Book3.xlsx
AB
133.57
Sheet958
Cell Formulas
RangeFormula
B1B1=MROUND(A1,5)/5


Also, should 31 be rounded to 30 or 35?
 
Upvote 0
I'm just showing you 2 samples like in your OP, take 1 out.

Book3.xlsx
A
133.5
27
Sheet958
Cell Formulas
RangeFormula
A2A2=MROUND(A1,5)/5
Excellent, that will work, truly appreciate your help!
 
Upvote 0
I added a question above: Should 31 be rounded to 30 or 35 ?
 
Upvote 0
I added a question above: Should 31 be rounded to 30 or 35 ?
So a number will be entered with a decimal, like 30.2, 35.7, those numbers need to be rounded up to 35 and 40 respectively. Only one number will be entered in the cell.
 
Upvote 0
Use this instead, CEILING Always rounds Up, MROUND goes both ways 4/5

Book3.xlsx
AB
130.27
Sheet958
Cell Formulas
RangeFormula
B1B1=CEILING(A1,5)/5
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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