Rounding

Gary in Guernsey

New Member
Joined
Mar 10, 2014
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi Team,
I have racked my brain trying to sort this, I have columns of numbers that are all integers. What i am trying to do is, if the last figure in the number is 1,2,3,or 4 then I need to set the number to round down to 0-1, so if the number is 124 i need it to be 119 and if the number ends in 6,7,8 or 9 then I need to set the number to round down to 5, so if the number is 1287 i need it to be 1285. I can either get one to work but not the other. the cell with the answer needs a formula for both cases as the column lists are vast and all change at different times.

I hope to hear from someone soon.
Kind regards
Gary
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
If you have individual expressions that work for both cases, then why not just use an IF statement to couple both together
Code:
=IF(RIGHT(A1,1)+0<=4,"Do this", "Do the other")
 
Upvote 0
Mappe1
AB
1124119
Tabelle1
Cell Formulas
RangeFormula
B1B1=FLOOR(A1,5)-(MOD(A1,10)<5)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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