+ Reply to Thread
Results 1 to 2 of 2

Rounding Issue

  1. #1
    Registered User
    Join Date
    02-08-2008
    Posts
    1

    Rounding Issue

    This question uses the IF() and ROUND() functions - both very simple.

    Please Login or Register  to view this content.
    Basically cell C16 contains the value 1.002 formatted to number. In that case the answer would be "Small". If changed to 1.001, it would no longer equal 0.002 and so it would be large. This works.

    However if I change C16 to any other number eg 3.002 nothing seems to work correctly. The evaluation of

    Please Login or Register  to view this content.
    comes out as something like 0.00029983837373 even though what it should be doing is just: 3.002-3=0.002

    can anyone follow or even help?

    thanks in advance

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Your formula ROUND(C16,0)=0.002 give an answer of FALSE, thats why its not working. Try this,

    =IF(C16-ROUND(C16,0)<=0.002,"Small","Large")
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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