+ Reply to Thread
Results 1 to 3 of 3

Need correct formula to multiply numbers and keep accurate when using decimal places

  1. #1
    Registered User
    Join Date
    04-01-2012
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need correct formula to multiply numbers and keep accurate when using decimal places

    Excel estimate form.xlsx

    See attached file:
    In the unit cost column, some items need to display with two decimals and others with no decimals.
    These are often changing back and forth depending on the item being sold or built
    I need a function that will make sure the math stays accurate in the base cost column regardless of 2 decimals or zero decimals
    Is it possible to use an "IF" function that decides what rounding to use based on the number of decimal places present, or is there a better way to accomplish this?

    I would like to use one formula that covers both scenarios.


    Thanks in advance for any help that can be provided!

  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
    53,044

    Re: Need correct formula to multiply numbers and keep accurate when using decimal places

    tryu this and see if it is what you want...
    =IF(P7<1,DOLLAR(ROUNDUP(P7*Q7+P7,2),2),DOLLAR(ROUNDUP(P7*Q7+P7,2),0))
    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
    Registered User
    Join Date
    04-01-2012
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need correct formula to multiply numbers and keep accurate when using decimal places

    Genius! Thank you!!

+ 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