#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 84
Default MROUND Help

I have the following formula:
=MROUND($AV15*$BG$5,50)

I now would like to modify it such that the lowest value for the
multiple is 50 or, if the result of 50/J15 is not an integer, then I
want to substitute 50 by the closest rounded up integer value that
divides into J15. The minimum value for the multiple has to be 50.

Examples:
* If J15 is 10 then the formula is =MROUND($AV15*$BG$5,50) because
50/J15 is an integer and 50 is my minimum multiple,
* If J15 is 30 then the formula is =MROUND($AV15*$BG$5,60) because
50/J15 is not an integer and the closes integer (rounded up) that
evenly divides into J15 is 60.

I hope I explained it clearly enough...

Thanks in advance for your help!
--
tb
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default MROUND Help


Try:
=MROUND($AV15*$BG$5,MIN($AV15,50)*CEILING(50/$AV15,1))



On Thu, 15 Aug 2013 15:20:49 +0000 (UTC), "tb"
wrote:

I have the following formula:
=MROUND($AV15*$BG$5,50)

I now would like to modify it such that the lowest value for the
multiple is 50 or, if the result of 50/J15 is not an integer, then I
want to substitute 50 by the closest rounded up integer value that
divides into J15. The minimum value for the multiple has to be 50.

Examples:
* If J15 is 10 then the formula is =MROUND($AV15*$BG$5,50) because
50/J15 is an integer and 50 is my minimum multiple,
* If J15 is 30 then the formula is =MROUND($AV15*$BG$5,60) because
50/J15 is not an integer and the closes integer (rounded up) that
evenly divides into J15 is 60.

I hope I explained it clearly enough...

Thanks in advance for your help!

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
MRound pb[_3_] Excel Programming 8 December 15th 12 01:43 AM
MROUND Brewer Excel Discussion (Misc queries) 2 June 27th 08 09:44 AM
MROUND Rob Connolly Excel Discussion (Misc queries) 4 August 3rd 07 11:33 PM
MROUND cheeser83 Excel Discussion (Misc queries) 7 January 6th 07 04:07 AM
Mround ynissel Excel Discussion (Misc queries) 1 June 2nd 05 05:32 PM


All times are GMT +1. The time now is 01:29 PM.

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

About Us

"It's about Microsoft Excel"