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

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Rounding averages

To do this you can use MRound(A2,0.5), but you would need the analysis
toolpack installed.

"John Mac" wrote:

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default Rounding averages

Me again, here you go
=IF(B1=0.8,0.9,IF(B10.3,0.5,0.1))
are you needing that to go with your other formula?
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"John Mac" wrote:

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Rounding averages

John
Thanks for your response - I did not make it clear what I required. I still
need the units to have the correct number eg. the average of 5.1 + 5.5 + 5.9
+ 5.1 = 5.4 but I need the answers to be rounded off to the nearest .1,.5 or
..9 (in this example 5.5)

"John Bundy" wrote:

Me again, here you go
=IF(B1=0.8,0.9,IF(B10.3,0.5,0.1))
are you needing that to go with your other formula?
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"John Mac" wrote:

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Rounding averages

Using this technique how do I round everything either up or down to the
nearest .1,.5 or.9?

"~L" wrote:

To do this you can use MRound(A2,0.5), but you would need the analysis
toolpack installed.

"John Mac" wrote:

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Rounding averages

Sorry, I didn't read that carefully enough. To do what you are asking, I
used this formula:

=IF(OR(MOD(D2,1)=0.1,MOD(D2,1)=0.5,MOD(D2,1)=0.9), D2,IF(MOD(D2,1)=0.3,IF(MOD(D2,1)=0.7,--(INT(D2)&".9"),--(INT(D2)&".5")),--(INT(D2)&".1")))

"John Mac" wrote:

Using this technique how do I round everything either up or down to the
nearest .1,.5 or.9?

"~L" wrote:

To do this you can use MRound(A2,0.5), but you would need the analysis
toolpack installed.

"John Mac" wrote:

If I am averaging a set of data and only want the
answer to have the decimal place of either .1, .5, or .9 how can I round off
the answer (either up or down) to the nearest of those required decimal
places?
Thanks for any help!


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Rounding averages

Hi John,

If your average is in A1, then take
=INT(A1)+CHOOSE((MOD(A1,1)<0.3)+(MOD(A1,1)<0.7)+1, 0.9,0.5,0.1)

HTH,
Bernd

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
I figured out how to do total averages in Pivot Charts! Jason McDermott Charts and Charting in Excel 0 September 8th 06 06:21 PM
Pivot Chart--I want total average, not sum of averages Jason McDermott Charts and Charting in Excel 3 September 1st 06 06:20 PM
How do I correct rounding errors in Excel formulas? C. Van Dam Excel Worksheet Functions 1 August 29th 06 04:37 AM
Rounding to the Nearest Eighth L.sean9 Excel Discussion (Misc queries) 4 June 23rd 06 12:00 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:07 AM.

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"