Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 129
Default Round up to the next number in the set

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Round up to the next number in the set

Hi,

Try this

=MIN(IF({305,610,915}=your formula,{305,610,915}))

Mike

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Round up to the next number in the set

Hi,

Neglected to mention this is an array formula

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Round up to the next number in the set

A1 being 200, 400, etc.

=INDEX({915,610,305},MATCH(A1,{915,610,305},-1))

Regards,
Stefi

€˛will€¯ ezt Ć*rta:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Round up to the next number in the set

No it isn't :(

"Mike H" wrote:

Hi,

Neglected to mention this is an array formula

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default Round up to the next number in the set

You may try using some IF statements, ie if <305 then 305, if 306 and <610,
then 610, if 611 then 910

It's been a long time since I used something like this, obviously the above
is not the exact formula - but someone else may chime in with the right
formula

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The calculation
will produce an answer which I want rounded up to one of the 3 numbers above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Round up to the next number in the set

=CEILING(A2,305)
--
David Biddulph

"Christina" wrote in message
...
You may try using some IF statements, ie if <305 then 305, if 306 and
<610,
then 610, if 611 then 910

It's been a long time since I used something like this, obviously the
above
is not the exact formula - but someone else may chime in with the right
formula

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The
calculation
will produce an answer which I want rounded up to one of the 3 numbers
above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Round up to the next number in the set

Very edifying! One has to try to read the OP's thoughts and notice that
610=2*305 and 915=3*305.
Stefi


€˛David Biddulph€¯ ezt Ć*rta:

=CEILING(A2,305)
--
David Biddulph

"Christina" wrote in message
...
You may try using some IF statements, ie if <305 then 305, if 306 and
<610,
then 610, if 611 then 910

It's been a long time since I used something like this, obviously the
above
is not the exact formula - but someone else may chime in with the right
formula

"will" wrote:

Hi,

Probably a simple one, but I can't think of an easy way of rounding up to
the next number in a set - eg the set is 305, 610 and 915. The
calculation
will produce an answer which I want rounded up to one of the 3 numbers
above
- eg, 200 is rounded up to 305; 400 is rounded up to 610 etc.

Many thanks for any help.

Will




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round number to the thousands without changing underlying number Tim Caldwell Excel Discussion (Misc queries) 3 June 13th 07 09:37 PM
Excel. How to round a number to nearest half number? HaraldS Excel Discussion (Misc queries) 2 February 19th 07 09:50 AM
Can I increase a number by 5.5% and then round that number to the. Jeff Thornburg Excel Discussion (Misc queries) 1 June 28th 06 05:26 PM
How can i round a number to closest tenth number? rayne95 Excel Worksheet Functions 3 June 19th 06 09:34 PM
How to make a number round up/down to a set number David S Excel Worksheet Functions 1 April 7th 05 04:20 PM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"