+ Reply to Thread
Results 1 to 4 of 4

Sum of range picking up ^-10 decimal place. Is there a way to sum 2 decimal place only?

  1. #1
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Sum of range picking up ^-10 decimal place. Is there a way to sum 2 decimal place only?

    Hi, thanks for looking.

    I am looking for a solution to sum only values up to 2 decimal place.

    I have a macro that is currently summing a range and coloring yellow until it meets a certain value.

    I have an error handler (at the bottom of the code), re-summing the yellow cells checking to ensure it has definitely matched the certain value. It is throwing out the error handling I have created 20% of the time due, and I have found that it is due to values that are below 0.01 value.

    Thanks for your help

    Please Login or Register  to view this content.
    Last edited by graym463; 08-20-2015 at 05:45 PM. Reason: fuller version of code

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,712

    Re: Sum of range picking up ^-10 decimal place. Is there a way to sum 2 decimal place only

    Maybe something like:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Sum of range picking up ^-10 decimal place. Is there a way to sum 2 decimal place only

    Thank you TMS! I have incorporated the round function and seems to working perfectly,

    snippet of final code -

    Please Login or Register  to view this content.
    much appreciated !!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,712

    Re: Sum of range picking up ^-10 decimal place. Is there a way to sum 2 decimal place only

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cannot change decimal place's?
    By nostrum in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2014, 11:12 AM
  2. Add one decimal place to each cell in a range
    By rob_ford16 in forum Excel General
    Replies: 1
    Last Post: 03-13-2014, 09:16 PM
  3. Check/Validate range for 4 decimal place input only
    By aprusik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-01-2013, 07:59 PM
  4. Decimal place Help
    By cadk73 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2012, 03:56 PM
  5. Decimal Place Help
    By cadk73 in forum Excel General
    Replies: 4
    Last Post: 02-14-2012, 08:11 PM
  6. Decimal Place
    By Pale Cloud in forum Excel General
    Replies: 6
    Last Post: 04-06-2011, 05:54 AM
  7. Replies: 3
    Last Post: 03-18-2006, 02:25 PM

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