Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Rounding results by ranges

I need help in coming up with a formula to apply rounding depending on the
value ranges as follows:

xx.00 - do not apply round formula

xx.01 to xx.25, then round to xx.25
xx.26 to xx.50, then round to xx.50
xx.51 to xx.75, then round to xx.75
xx.76 to xx.99, then add +1 to xx.

For example, if 33.23, the result should be 33.25; if 33.72, the result
should be 33.75; if 33.94, then the result should be 34.00.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Rounding results by ranges

Try =CEILING(A1,0.25)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"mmarley50" wrote in message
...
I need help in coming up with a formula to apply rounding depending on the
value ranges as follows:

xx.00 - do not apply round formula

xx.01 to xx.25, then round to xx.25
xx.26 to xx.50, then round to xx.50
xx.51 to xx.75, then round to xx.75
xx.76 to xx.99, then add +1 to xx.

For example, if 33.23, the result should be 33.25; if 33.72, the result
should be 33.75; if 33.94, then the result should be 34.00.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Rounding results by ranges

If you really mean round, so xx.12 rounds to xx.00:
=mround(A1,.25)
But if you mean round up, so xx.12 becomes xx.25:
=CEILING(A1,.25)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"mmarley50" wrote in message ...
|I need help in coming up with a formula to apply rounding depending on the
| value ranges as follows:
|
| xx.00 - do not apply round formula
|
| xx.01 to xx.25, then round to xx.25
| xx.26 to xx.50, then round to xx.50
| xx.51 to xx.75, then round to xx.75
| xx.76 to xx.99, then add +1 to xx.
|
| For example, if 33.23, the result should be 33.25; if 33.72, the result
| should be 33.75; if 33.94, then the result should be 34.00.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Rounding results by ranges

I should have added:

From Excel Help:

If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message ...
| If you really mean round, so xx.12 rounds to xx.00:
| =mround(A1,.25)
| But if you mean round up, so xx.12 becomes xx.25:
| =CEILING(A1,.25)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "mmarley50" wrote in message ...
||I need help in coming up with a formula to apply rounding depending on the
|| value ranges as follows:
||
|| xx.00 - do not apply round formula
||
|| xx.01 to xx.25, then round to xx.25
|| xx.26 to xx.50, then round to xx.50
|| xx.51 to xx.75, then round to xx.75
|| xx.76 to xx.99, then add +1 to xx.
||
|| For example, if 33.23, the result should be 33.25; if 33.72, the result
|| should be 33.75; if 33.94, then the result should be 34.00.
|
|


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
Mass Creation of Named Ranges? [email protected] Excel Discussion (Misc queries) 7 July 11th 06 08:41 AM
Named Ranges don't show up in drop-down list hds Excel Discussion (Misc queries) 14 July 3rd 06 09:30 PM
Rounding up results to meet minimum order quantities. Vin C. Excel Worksheet Functions 2 February 7th 06 06:38 PM
How do I do a VLOOKUP from 2 ranges and add the results together? Wendy Excel Worksheet Functions 4 April 11th 05 10:38 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


All times are GMT +1. The time now is 02:07 AM.

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"