Ozgrid Excel Help & Best Practices Forums

Excel Training / Excel Dashboards Reports

# Thread: Round Up To Nearest X`

1. I agreed to these rules
Join Date
9th June 2007
Posts
9

## Round Up To Nearest X`

Hello. First post here. I trying to make a formula that will multiply a cell by 1.43 and then round the total up to the nearest 45 or 95 with no decimal points. Any help would be greatly appreciated.

Excel Video Tutorials / Excel Dashboards Reports

2. ## Re: Round Up To Nearest 45 Or 95

Try something like this to round up the value in cell B1:

=ROUNDUP((B1*1.43)/45,0)*45

Jim

Excel Video Tutorials / Excel Dashboards Reports

3. I agreed to these rules
Join Date
9th June 2007
Posts
9

## Re: Round Up To Nearest 45 Or 95

That doesn't seem to be working. It just rounds it to the nearest multiple of ten. I think i'm a little further along now though. This will round to 95 everytime...
=ROUNDUP((C2*1.25),-2)-5
Now I just need to find out how to add the round to 45 in there.

Excel Video Tutorials / Excel Dashboards Reports

4. ## Re: Round Up To Nearest 45 Or 95

Datzneat,

Please do not add code tags to formulas. You can if you like add formula tags like this (new feature of website:

[f]=roundup (c2, -2) -5[/f]

gives

Try this formula. Column letter & Row number are for example only. Array formulas will have curly brackets {} emcompassing the ENTIRE formula. You do not add these, you Enter the formula with Ctrl+Shift+Enter and Excel will add them (details: Array formulas). Many more Excel Formulas
 Z 100 =roundup (c2, -2) -5

Last edited by Reafidy; June 9th, 2007 at 11:41.

5. ## Re: Round Up To Nearest 45 Or 95

I attached a sample of the formula I posted and it seems to work. Unless, I don't understand what you want...

Jim

Excel Video Tutorials / Excel Dashboards Reports

6. ## Re: Round Up To Nearest 45 Or 95

= Min( Roundup( A1 * 1.43 / 45, 0) * 45, Roundup( A1 * 1.43 / 95, 0) * 95)

7. I agreed to these rules
Join Date
9th June 2007
Posts
9

## Re: Round Up To Nearest 45 Or 95

Yea i'm still seeing the wrong numbers with these. It should only be coming up with numbers that end in 45 or 95.
ie.
11 would be 45
32 would be 45

46 would be 95
1865 would be 1895

and so forth.

Excel Video Tutorials / Excel Dashboards Reports

8. ## Re: Round Up To Nearest 45 Or 95

See if this gets us any closer.

Excel Video Tutorials / Excel Dashboards Reports

9. ## Re: Round Up To Nearest 45 Or 95

Originally Posted by datzneat
11 would be 45
32 would be 45
46 would be 95
1865 would be 1895
That's incorrect.

11 * 1.43 = 15.73, rounded up to multiple of 45 is 45, to 95 is 95, smaller is 45
32 * 1.43 = 45.76, rounded up to multiple of 45 is 90, to 95 is 95, smaller is 90
46 * 1.43 = 65.78, rounded up to multiple of 45 is 90, to 95 is 95, smaller is 90
1896 * 1.43 = 2711.28, rounded up to multiple of 45 is 2745, to 95 is 2755, smaller is 2745
Last edited by shg; June 9th, 2007 at 12:18.

10. I agreed to these rules
Join Date
9th June 2007
Posts
9

## Re: Round Up To Nearest 45 Or 95

I don't get what you're saying shg... those were just examples of what i need the numbers to round to, all multiplying aside.

The problem with that code Jim is that it isn't just one code. It is multiple codes, and i'm not sure if rounddown is the best way to do it...

Is there a way to work an OR statement into : =ROUNDUP((C2*1.25),-2)-5

Excel Video Tutorials / Excel Dashboards Reports

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
porno