Rounding

SDBonner

New Member
Joined
Dec 23, 2009
Messages
28
Hi there,

Is there a way of having ROUNDUP activated if the amount is =>500 and ROUNDDOWN if =<499 WITHIN a larger number, and within the same cell e.g.

if amount = 2,369 result will be 2,000
if amount = 2,698 result will be 3,000

Was thinking about an IF but unsure about how to express the greater than or less than bits.

As always, much thanks in advance and happy to give further clarification if required.

S.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi,

I suppose round, roundup and roundown works only if there is a decimal, not otherwise.

you can work with this formula, assuming the numbers are in A1 AND A2

=IF(AND(A1>=2500,A1<3000),3000,2000)
 
Upvote 0
Ron,

Using the decimal position of -1 (Single), -2 (Tens), -3(hundreds) etc works just as well doesnt it?

Your formulea works great for between 2000 & 3000, but I think the OP was looking for <=> 500 for any number.

Regards
 
Upvote 0
Hi Ron99,

Did you test dazfoz formula? it does work
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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