+ Reply to Thread
Results 1 to 6 of 6

Sum of numbers with decimals.

  1. #1
    Registered User
    Join Date
    01-05-2020
    Location
    Nepal
    MS-Off Ver
    2013
    Posts
    22

    Sum of numbers with decimals.

    Hello, I'm having a problem in addition of numbers with decimals. I have attached a sample workbook which consists of two columns A & B. Both column have same numbers but column A consists of formula whereas column B doesn't have any formula. The thing is sum of both columns are different. It is because every cells in column A have formula and the value is returned into decimal numbers.

    Example:
    A1=15360/31*11 which returns value 5450.32258064516
    So, excel sums all decimal in column A and returns value which if compared to column B is different.

    What I want is to sum only two digit after decimal and return value like in B12 and also I want every cell to show their respective formulas too.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sum of numbers with decimals.

    You would need to use ROUND() for this. I put this in D1 and copied down...
    =ROUND(A1,2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sum of numbers with decimals.

    Please do not post duplicate threads - I have closed your other 1

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,700

    Re: Sum of numbers with decimals.

    Try this:

    =ROUND(15360/31*11,2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    01-05-2020
    Location
    Nepal
    MS-Off Ver
    2013
    Posts
    22

    Re: Sum of numbers with decimals.

    I have to even show formula in the cells i.e. 15360/31*11
    Sorry, due to internet issue next thread was also created, kindly delete that.

    Thanks Ali, it worked.
    Last edited by anuselesscharacter; 09-25-2020 at 01:14 AM.

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sum of numbers with decimals.

    Quote Originally Posted by anuselesscharacter View Post
    I have to even show formula in the cells i.e. 15360/31*11
    To show the formulas:
    Ribbon > Formulas > Show Formulas

    If you need to show the formulas in a "normal" view then make these additional steps.
    1. Format column-C as 'Text"
    2. With formulas showing, copy col-A
    3. Paste into an empty MS-Word document
    4. In MS-Word, select what you just pasted in.
    5. Copy
    6. Paste as Text into Excel col-C
    7. Deselect Show Formulas

    Column-C should now still show your formulas.

    Note that this is only a "static" one-off workaround only. If you now change any of your col-A formulas then these changes will not be reflected in col-C.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

+ 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. Replies: 4
    Last Post: 09-25-2019, 08:26 PM
  2. Formula to identify between whole numbers and numbers with decimals
    By Jonor55 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-28-2019, 10:14 AM
  3. [SOLVED] Removing decimals from numbers
    By dugumr in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-18-2013, 08:17 AM
  4. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  5. whole numbers being changed to decimals
    By PCH in forum Excel General
    Replies: 1
    Last Post: 05-25-2009, 03:34 PM
  6. About decimals numbers
    By RazBoss in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2009, 02:39 PM
  7. Numbers have too many decimals
    By stev49 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-18-2009, 07:01 AM

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