determine round up/down amount

alanlambden

Board Regular
Joined
Nov 20, 2014
Messages
70
Hi Guys,

Ive got an array of numbers that i would like to categories by how much i need to round up or down to the nearest 100. If rounding to the nearest 100 is <= 10 then id like to index this number as 1. If >10, then index =2.
6003021
6003522
6004112
6004091
6999901

<tbody>
</tbody>

Hope this is clear, any help?

Al
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
well, here is what I came up with...


Excel 2010
AB
16003021
26003522
36004112
46004091
56999901
Sheet1
Cell Formulas
RangeFormula
B1=IF(100*ABS(RIGHT(A1,3)/100 -ROUND(RIGHT(A1,3)/100,0) )<=10,1,2)
 
Upvote 0
Another way:

Row\Col
A​
B​
C​
1​
600302​
1​
B1: =IF(ABS(MROUND(A1, 100) - A1) <=10, 1, 2)
2​
600352​
2​
3​
600411​
2​
4​
600409​
1​
5​
699990​
1​
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

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