A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

rounding up a calculated field to the next $5 level



 
 
Thread Tools Display Modes
  #1  
Old August 18th, 2009, 05:48 PM posted to microsoft.public.access.reports
denise
external usenet poster
 
Posts: 388
Default rounding up a calculated field to the next $5 level

=([LAST YR USAGE]+[THIS YR USAGE])/2

I would like to round the answer to the next $5 level. What function do i
use?
  #2  
Old August 18th, 2009, 07:18 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default rounding up a calculated field to the next $5 level

You can try the following as long as the numbers are positive

= -Int(-([LAST YR USAGE]+[THIS YR USAGE])/2 / 5) * 5

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Denise wrote:
=([LAST YR USAGE]+[THIS YR USAGE])/2

I would like to round the answer to the next $5 level. What function do i
use?

  #3  
Old August 18th, 2009, 10:10 PM posted to microsoft.public.access.reports
denise
external usenet poster
 
Posts: 388
Default rounding up a calculated field to the next $5 level

Works like a charm - ty much..

"John Spencer" wrote:

You can try the following as long as the numbers are positive

= -Int(-([LAST YR USAGE]+[THIS YR USAGE])/2 / 5) * 5

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Denise wrote:
=([LAST YR USAGE]+[THIS YR USAGE])/2

I would like to round the answer to the next $5 level. What function do i
use?


 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:32 PM.


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