Results 1 to 4 of 4
  1. #1
    nbrock2002 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    8

    Help with rounding in Access and Excel

    Hello,



    I have an excel file that is used for our timesheet. We import that information into Access. My problem is that we have a formula to show how many hours worked to the nearest tenth on the timesheet itself before importing (Employees visually get to see). I then import and run a query to determine hours worked on the access side (we may adjust times so needs a formula and not just total hours worked). I need to determine hours worked in both Excel and Access and they need to match. I've got my head around bankers rounding and arithmetic rounding and why I'm not matching but I need to come up with a solution so they both come to the same conclusion.

    I am willing to change Excel's or Access' formulas (or both) to get it to work. I would like to refrain from using VBA to run a query because I'm not yet familiar with that. Currently I am using "ROUND((TimeOut-TimeIn)*24,1))" as my formula in both Excel and Access. Any advice?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Round() in Access uses bankers (even/odd) rule. In Excel it does not.

    Format() function in Access does not use bankers.

    Consider:

    CDbl(Format(3.45,"0.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.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I suggest you show us some examples.
    Show us what you have; what you have tried; and what you want it to show.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    PMFJI,

    Don't know if this will help you - here are a couple of sites with info about Access/Excel rounding:

    Rounding in Access: http://www.allenbrowne.com/round.html
    Access Round Function: http://access-excel.tips/access-roun...nd-even-logic/




    And Welcome to the forum.....

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

Similar Threads

  1. Replies: 1
    Last Post: 06-07-2018, 08:05 AM
  2. Replies: 2
    Last Post: 12-15-2017, 08:09 PM
  3. Replies: 2
    Last Post: 09-26-2017, 09:18 AM
  4. Access rounding data when I export...
    By kestefon in forum Access
    Replies: 5
    Last Post: 11-25-2013, 03:04 PM
  5. Rounding in Access 2010
    By rgreenbank in forum Access
    Replies: 1
    Last Post: 05-31-2013, 09:39 AM

Tags for this Thread

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