+ Reply to Thread
Results 1 to 5 of 5

Sum of round numbers

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    Banja Luka, Bosnia
    MS-Off Ver
    Excel 2013
    Posts
    17

    Sum of round numbers

    Hello folks!
    I have a problem with rounding and sums.

    What I need is to:
    1.Round product of two numbers on 2 decimals (I don't need more decimal places)
    2.Then Sum all of these products on 2 decimals.

    What I am guessing that probably Sum of these numbers is primary executed and then Product of those numbers is Rounded, because I'm getting wrong numbers.
    I need first to round those numbers and then sum them.

    Hope someone will help me.

    Thanks!

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Sum of round numbers

    Hi,

    Try:

    =SUMPRODUCT(ROUND(A1:A10,2),ROUND(B1:B10,2))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    11-24-2011
    Location
    Banja Luka, Bosnia
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Sum of round numbers

    Quote Originally Posted by Domski View Post
    Hi,

    Try:

    =SUMPRODUCT(ROUND(A1:A10,2),ROUND(B1:B10,2))

    Dom
    Thank you for your help.
    If I use this function you gave me I only receive empty cell
    I tried some of solutions like this but it didn't worked (don't know what this empty cell means).

    In my example I have 3 Sums
    0.00400
    0.00400
    0.00400
    rounded on 2 decimals it should be:
    0.00
    0.00
    0.00
    and Sum of these sums above should be
    0.00
    but I am getting the result
    0.01

    I assume that excel is first doing Sum of results then Round of each result.

    Hoping this will explain my problem.
    Thanks a lot!

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Sum of round numbers

    Can you provide a sample workbook?

    Dom

  5. #5
    Registered User
    Join Date
    11-24-2011
    Location
    Banja Luka, Bosnia
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Sum of round numbers

    I solve the problem.Formulas were right but problem was in formating made by my friend who asked for my help and who gave me a file
    Dom, thanks a lot man!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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