Results 1 to 5 of 5
  1. #1
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28

    Rounding down in a report field

    Hi,



    I am creating a student database for our instructors to track attendance and grades. The grades will be printed out as a progress report / student transcript. In order to comply with our accrediting agencies, I must calculate the units of study credits (two separate columns) and have the total Credits round down to the .5

    So for example: column 1 = .40 , column 2 = .30, Total = .70 but the rounded down total would be .50

    This is the Excel formula used to get that calculation =FLOOR((E11+G11),0.5) How do I create the expression to do the same in my report in that field?

    Any help is appreciated.

    Dottie

  2. #2
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Didn't test it, but should work: Int([Total]*2)/2

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    I tested the Excel and hapm expression. Both return 1.

    If the total grades were 1.7, should round to 1.5? If so, try:

    Int([Total]) + IIf([Total]-Int([Total])>=.5,.5,0)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    So I simply missed to use 2.0 to make it a double division? Only a guess.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Wow, yes, 2.0 made a difference.

    I actually have opposite situation, which is to always round up and that's where I got my suggestion from, with a slight adjustment for the round down.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Rounding Down in a calculation field
    By FFLKing in forum Access
    Replies: 8
    Last Post: 06-05-2013, 02:22 PM
  2. Rounding
    By Rhubie in forum Queries
    Replies: 3
    Last Post: 05-30-2013, 10:55 AM
  3. rounding down
    By markcranmer in forum Queries
    Replies: 1
    Last Post: 10-11-2011, 09:43 AM
  4. Rounding
    By BLD21 in forum Reports
    Replies: 5
    Last Post: 06-20-2011, 01:06 PM
  5. Rounding off
    By Alex Motilal in forum Access
    Replies: 4
    Last Post: 12-20-2009, 12:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums