#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stuart Carnachan
 
Posts: n/a
Default Rounding up/down

I have a calculation of an average of 4 & 7 nos. I want to round down any
thing between .1 & .3 e.g. 3.3 = 3.0

roundup/down to .5 if between .4 & .6 e.g 3.4 = 3.5 & 3.6 =3.5

and round up between .7 and .9 eg 3.7 to 4.0
and if a whole no leave alone e.g 3.0 = 3.0

--
Stuart
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph
 
Posts: n/a
Default Rounding up/down

<Stuart Carnachan wrote in message
...
I have a calculation of an average of 4 & 7 nos. I want to round down any
thing between .1 & .3 e.g. 3.3 = 3.0

roundup/down to .5 if between .4 & .6 e.g 3.4 = 3.5 & 3.6 =3.5

and round up between .7 and .9 eg 3.7 to 4.0
and if a whole no leave alone e.g 3.0 = 3.0


=IF(AND(MOD(A1,1)0.35,MOD(A1,1)<0.65),MROUND(A1,0 .5),INT(A1)) , adjusting
your boundaries as it suits you between 0.3 & 0.4, and between 0.6 and 0.7.
Remember that MROUND needs the Analysis ToolPak add-in.
--
David Biddulph


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph
 
Posts: n/a
Default Rounding up/down

"David Biddulph" wrote in message
...
<Stuart Carnachan wrote in message
...
I have a calculation of an average of 4 & 7 nos. I want to round down any
thing between .1 & .3 e.g. 3.3 = 3.0

roundup/down to .5 if between .4 & .6 e.g 3.4 = 3.5 & 3.6 =3.5

and round up between .7 and .9 eg 3.7 to 4.0
and if a whole no leave alone e.g 3.0 = 3.0


=IF(AND(MOD(A1,1)0.35,MOD(A1,1)<0.65),MROUND(A1,0 .5),INT(A1)) , adjusting
your boundaries as it suits you between 0.3 & 0.4, and between 0.6 and
0.7.
Remember that MROUND needs the Analysis ToolPak add-in.



Correction:
=IF(AND(MOD(A1,1)0.35,MOD(A1,1)<0.65),MROUND(A1,0 .5),ROUND(A1,0))
--
David Biddulph


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Rounding up/down

=INT(A1)+IF(MOD(A1,1)<0.4,0,IF(MOD(A1,1)<0.7,0.5,1 ))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

<Stuart Carnachan wrote in message
...
I have a calculation of an average of 4 & 7 nos. I want to round down any
thing between .1 & .3 e.g. 3.3 = 3.0

roundup/down to .5 if between .4 & .6 e.g 3.4 = 3.5 & 3.6 =3.5

and round up between .7 and .9 eg 3.7 to 4.0
and if a whole no leave alone e.g 3.0 = 3.0

--
Stuart



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
Rounding or not rounding Connie Martin Excel Worksheet Functions 6 April 10th 06 06:24 PM
Rounding up/down problems ? Big Bad Nige Excel Worksheet Functions 2 April 5th 06 08:37 AM
Decimal Places - Settings for Auto Rounding Up/Down Holmes, Maria Excel Worksheet Functions 2 February 10th 06 05:52 PM
Mouse scroll jumps from up/down to left/right Chris Excel Discussion (Misc queries) 0 April 15th 05 05:48 AM
Banker's Rounding - need help! Somecallmejosh Excel Discussion (Misc queries) 3 January 20th 05 09:53 PM


All times are GMT +1. The time now is 03:31 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"