+ Reply to Thread
Results 1 to 5 of 5

decimal places within a formula

  1. #1
    Registered User
    Join Date
    06-03-2005
    Posts
    1

    decimal places within a formula

    Is there a way to set up a number within an equation to have onlyt 2 decimal places? The cells are already formatted to have this, but the data within the cells contains more decimal places which is what is used when the sum() function is run. Since the anwser to this function is used in comparison with other numbers, the answer needs to come out to 2 decimal places in order to match up.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515
    There's an option in the main options dialog to use "precision as displayed" which would cause it to only use the two decimal places displayed.

  3. #3
    TomHinkle
    Guest

    RE: decimal places within a formula

    = int (sum(X:X)*100) / 100



    "Paul01" wrote:

    >
    > Is there a way to set up a number within an equation to have onlyt 2
    > decimal places? The cells are already formatted to have this, but the
    > data within the cells contains more decimal places which is what is
    > used when the sum() function is run. Since the anwser to this function
    > is used in comparison with other numbers, the answer needs to come out
    > to 2 decimal places in order to match up.
    >
    >
    > --
    > Paul01
    > ------------------------------------------------------------------------
    > Paul01's Profile: http://www.excelforum.com/member.php...o&userid=24012
    > View this thread: http://www.excelforum.com/showthread...hreadid=376301
    >
    >


  4. #4
    Ron Rosenfeld
    Guest

    Re: decimal places within a formula

    On Fri, 3 Jun 2005 09:51:50 -0500, Paul01
    <[email protected]> wrote:

    >
    >Is there a way to set up a number within an equation to have onlyt 2
    >decimal places? The cells are already formatted to have this, but the
    >data within the cells contains more decimal places which is what is
    >used when the sum() function is run. Since the anwser to this function
    >is used in comparison with other numbers, the answer needs to come out
    >to 2 decimal places in order to match up.


    *array-enter*

    =SUM(ROUND(A1:A10,2))

    To *array-enter*, hold down <ctrl><shift> while hitting <enter>. Excel will
    place braces {...} around the formula.


    --ron

  5. #5
    Ron Rosenfeld
    Guest

    Re: decimal places within a formula

    On Fri, 3 Jun 2005 09:31:03 -0700, TomHinkle
    <[email protected]> wrote:

    >= int (sum(X:X)*100) / 100



    You may be correct in deciphering what the OP wants.

    But I would point out that your procedure will give different results from
    adding up the entries rounded first to two decimal places.


    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1