+ Reply to Thread
Results 1 to 8 of 8

Finding Values With more than 2 decimal Places

Hybrid View

  1. #1
    Registered User
    Join Date
    07-16-2004
    Posts
    11

    Finding Values With more than 2 decimal Places

    Hello,

    I am using sumif to verify some numbers. These should all be dollar values and thus should not contain and values past 2 decimal places however when I use the sumif it returns values with long decimals? I have been unable to find where these decimals exist visually and i tried this formula to help me identify them

    =IF(L18-(ROUND(L18,2))=0,0,"Help")
    ^ hopefully this would let me know if a decimal past 2 places is present in a value but I still am unable to find them?


    any help would be apreciated


    Thanks

    Chuck

  2. #2
    N Harkawat
    Guest

    Re: Finding Values With more than 2 decimal Places

    your formula looks OK and should provide you with the result you are
    seeking.
    Is your calculate option set to Automatic and not Manual?

    "clane" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello,
    >
    > I am using sumif to verify some numbers. These should all be dollar
    > values and thus should not contain and values past 2 decimal places
    > however when I use the sumif it returns values with long decimals? I
    > have been unable to find where these decimals exist visually and i
    > tried this formula to help me identify them
    >
    > =IF(L18-(ROUND(L18,2))=0,0,"Help")
    > ^ hopefully this would let me know if a decimal past 2 places is
    > present in a value but I still am unable to find them?
    >
    >
    > any help would be apreciated
    >
    >
    > Thanks
    >
    > Chuck
    >
    >
    > --
    > clane
    > ------------------------------------------------------------------------
    > clane's Profile:
    > http://www.excelforum.com/member.php...o&userid=11865
    > View this thread: http://www.excelforum.com/showthread...hreadid=381265
    >




  3. #3
    Registered User
    Join Date
    07-16-2004
    Posts
    11
    Yeah I thought it would work but I still cant seem to find any of the decimals?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515
    How large of an error are we talking about? Could it be simply a result of "rounding error" because the computer has to work with binary numbers and not decimal numbers?

  5. #5
    Registered User
    Join Date
    07-16-2004
    Posts
    11
    OK so I found a way to find where the valuse should exist but I am still unable to view them?

    I trimmed down my data set to one version so sumif is unnecesary then used

    sum(A$1:A1) and copied it down then where ever the value changed I figured there most be a decimal in that value I have the view so that I can more decimals than I should need to in both columns but I still can't view the actual decimal it just displays .0000000000

    also the decimal change is in the 12th decimal #

    thanks for your help

  6. #6
    Registered User
    Join Date
    07-16-2004
    Posts
    11
    1 more question

    this file is imported to excel from a text file. Could those extraneous digits be added by that process? I was thinking that becasue now the text file puts dollar signs in front of dollar values that might add some thing out in that 14th decimal point range? also when I import these as text they only have 2 decimal points so I m thinking the number is added in that process somewhere?

    any ideas?

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515
    The error is in the 14th decimal place??? That is almost certainly round-off error resulting from the computer using binary numbers. I found the following articles by searching on Google for rounding error binary:

    http://www.cpearson.com/excel/rounding.htm
    http://support.microsoft.com/default...kb;en-us;78113

    Here's something to try:
    In and adjacent column, multiply the values in question by 100, to eliminate fractions
    Sum these values
    Divide by 100 to get back to dollars and cents.
    See if the extraneous digits are gone.
    Last edited by MrShorty; 06-22-2005 at 03:01 PM.

+ 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