Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formating sum function (2002)

    I have the following function in a text box in a report.
    =sum([hours]) & " hours completed to date." - Ex. 280 hours completed to date.

    How can I format this function to either round off a number like 280.7 to 281 or to drop the decimal number all together to 280.

    Thanks

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Formating sum function (2002)

    To round to the nearest integer:

    =Int(Sum([Hours])+0.5) & " hours completed to date."

    To truncate the decimal:

    =Int(Sum([Hours])) & " hours completed to date."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •