+ Reply to Thread
Results 1 to 5 of 5

Question about decimal places

  1. #1
    Registered User
    Join Date
    02-06-2006
    Posts
    4

    Question about decimal places

    I have a worksheet function that gives me a result in a dollar value with 2 decimals, let's say it produces the following value: $11.85. Now, the actual value is more like this $11.85983733333 because it's a result of a much more complex formula, but of course I have it rounded off to 2 decimal places. I have another formula that takes the above number and multiplies it by a number of hours, say 5000, and I get a dollar value, BUT I want the second formula to grab the $11.85 in the first formula and use that, but instead it grabs the long un-rounded version. How do I get it to grab the result that I want? Am I making sense? I can explain myself further if necessary. Thanks.

  2. #2
    Arvi Laanemets
    Guest

    Re: Question about decimal places

    Hi


    "chrisgoulden" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I have a worksheet function that gives me a result in a dollar value
    > with 2 decimals, let's say it produces the following value: $11.85.
    > Now, the actual value is more like this $11.85983733333 because it's a
    > result of a much more complex formula, but of course I have it rounded
    > off to 2 decimal places. I have another formula that takes the above


    How you did it? Rounded using ROUND(), set 'Precision as displayed' from
    Tools>Options>Calculations to be checked for a while, or simply formatted
    cell as number with 2 decimals. When latter, then formatting affects only
    the way, the cell value is displayed, not the value itself.


    Arvi Laanemets



  3. #3
    Pete
    Guest

    Re: Question about decimal places

    In the cell that produces $11.85983733333 by some formula, you should
    modify this to:

    =ROUND(your_formula,2),

    although I would have thought this would produce $11.86 - if you really
    want $11.85, use:

    =ROUNDDOWN(your_formula,2), or
    =INT(your_formula*100)/100

    Hope this helps.

    Pete


  4. #4
    Registered User
    Join Date
    02-06-2006
    Posts
    4
    Pete.........Thank you.........this works great!!!!!!! My boss will be so happy!!!!!!!!!!!!!!!

  5. #5
    Pete
    Guest

    Re: Question about decimal places

    Hi Chris,

    thanks for feeding back, glad it worked for you.

    Pete


+ 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