+ Reply to Thread
Results 1 to 10 of 10

Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Hooksett, NH
    MS-Off Ver
    Excel 2013
    Posts
    9

    Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    OK, I have designed an inventory / accounting program for my work which tracks all purchases and categorizes them into different departments.

    Some of the items, however, split across multiple categories (eg. celery purchases split 20% into chili, 25% into chowder, 50% into soup, 5% into misc. food), thus creating an amount of something like $12.155 into a particular category. Since I need to reduce the number to 2 decimal places for our accountant, that example would become $12.16. Therefore, when all the numbers for all the departments are added together, they do not match because of the odd penny.

    I tried truncating the numbers, but I get a similar problem because they can now be LOWER by a penny or two. Then I attempted to add or subtract the difference from the original invoice total with the department breakdown, but that caused a circular reasoning error.

    So what method could I utilize to deal with this issue? Any help would be truly appreciated.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    One way:

    Row\Col
    A
    B
    C
    D
    1
    Total
    2
    $ 243.1000
    C2: Input
    3
    Used In
    Portion
    Allocation
    4
    Chili
    20%
    $ 48.6200
    C4: =IF(B4=0, 0, ROUND(B4 / (1 - SUM(B$3:B3)) * ($C$2 - SUM(C$3:C3)), 2))
    5
    Chowder
    25%
    $ 60.7800
    6
    Soup
    50%
    $ 121.5500
    7
    Misc
    5%
    $ 12.1500
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-13-2014
    Location
    Hooksett, NH
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    That looks ingenious, but I don't understand it at all.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    In the first instance, it calculates 20%/100% of $243.10 and rounds the answer to the penny.

    In the next, it calculates 25%/(100% - 20%) of ($243.10 - $48.62) and rounds the answer to the penny.

    In the next, it calculates 50%/(100% - 20% - 25%) of ($243.10 - $48.62 - $60.78) and rounds the answer to the penny.

    In the last, it calculates 5%/(100% - 20% - 25% - 50%) of ($243.10 - $48.62 - $60.78 - $121.55) and rounds the answer to the penny.
    Last edited by shg; 02-21-2015 at 03:16 PM.

  5. #5
    Registered User
    Join Date
    01-13-2014
    Location
    Hooksett, NH
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    OK, I get it now. The only problem is it would require an extreme amount of work because of the way I have this "purchase breakdown" tab laid out currently.

    I have many items which are broken down into smaller sub-categories--produce items, condiments, French fries & onion rings, etc--and they are all currently done so within the cell formula along with many other items. This would require lots of extra work. But I certainly appreciate the input...if it's the only way then I may need to do it. Thanks for your help.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    You're welcome.

  7. #7
    Registered User
    Join Date
    01-13-2014
    Location
    Hooksett, NH
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    I set up a new table to make this easier, but I'm still struggling with the formula.

    Is that one formula you listed for the entire breakdown? And what does the B$3 refer to?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    Is that one formula you listed for the entire breakdown?
    Yup.

    Ad what does the B$3 refer to?
    B3 is just a place to start for the sum. It's text, so SUM ignores it.

    Post your actual workbook?
    Last edited by shg; 02-21-2015 at 08:15 PM.

  9. #9
    Registered User
    Join Date
    01-13-2014
    Location
    Hooksett, NH
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    I got it!! Thanks again.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to add multiple numbers that are reduced to 2 decimal points and thus don't match

    You're welcome.

+ 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. Sort numbers with multiple decimal points [WBS numbers]
    By KristofferA in forum Excel General
    Replies: 11
    Last Post: 03-20-2017, 08:56 PM
  2. [SOLVED] Need Variable Details for Storing numbers with multiple decimal points
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2014, 05:34 PM
  3. [SOLVED] Round off numbers and remove decimal points
    By bmbalamurali in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2014, 01:14 PM
  4. Replies: 1
    Last Post: 02-21-2011, 05:57 PM
  5. Sorting numbers with multiple decimal points?
    By Jonathan in forum Excel General
    Replies: 11
    Last Post: 05-17-2005, 06:06 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