MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 10:56 AM   #1
Mel C Roberts
 
Join Date: Feb 2002
Location: England
Posts: 40
Default Rounding to 0.25

Please help.

I need to round information in a spreadsheet to the nearest 0.25
So data either reads, for example, 1.25, 1.50, 1.75 or 2.00 and nothing in between i.e. if the value is 1.3 it would round down to 1.25 and if it was 1.4 it would round up to 1.5

I am sure this is not too tricky but is driving me crazy!!

Please help
Mel C Roberts is offline   Reply With Quote
Old Mar 30th, 2004, 11:03 AM   #2
Jaafar Tribak
 
Jaafar Tribak's Avatar
 
Join Date: Dec 2002
Location: Larache--Morocco
Posts: 2,917
Default Re: Rounding to 0.25

Hi,

Use the Ceiling and Floor functions as :

=CEILING(A1,0.25)
=Floor(A1,0.25)

Regards.
__________________
Jaafar.

Happiness is when what you think, what you say, and what you do are in harmony.




http://www.laracheenelmundo.com/
Jaafar Tribak is offline   Reply With Quote
Old Mar 30th, 2004, 11:04 AM   #3
Richie(UK)
MrExcel MVP
 
Richie(UK)'s Avatar
 
Join Date: May 2002
Location: UK
Posts: 3,333
Default Re: Rounding to 0.25

Hi Mel,

How about MRound from the Analysis toolpack?


******** ******************** ************************************************************************>
Microsoft Excel - Book1___Running: xl97 : OS = Windows ME
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
1
0.650.75**
2
0.800.75**
3
1.301.25**
4
1.401.50**
5
1.511.50**
6
1.651.75**
7
1.731.75**
Sheet1*

[HtmlMaker 2.32] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.



HTH
__________________
<font color="blue"> ««« <font color="red">¤ <font color="blue"><font size=+1>Richie </font><font color="red">¤<font color="blue"> »»» </font>
Richie(UK) is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.