Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chrisgoulden
 
Posts: n/a
Default 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.


--
chrisgoulden
------------------------------------------------------------------------
chrisgoulden's Profile: http://www.excelforum.com/member.php...o&userid=31235
View this thread: http://www.excelforum.com/showthread...hreadid=509017

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Question about decimal places

Hi


"chrisgoulden"
wrote in message
news:chrisgoulden.22tqmz_1139256904.2383@excelforu m-nospam.com...

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
ToolsOptionsCalculations 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chrisgoulden
 
Posts: n/a
Default Question about decimal places


Pete.........Thank you.........this works great!!!!!!! My boss will be
so happy!!!!!!!!!!!!!!!


--
chrisgoulden
------------------------------------------------------------------------
chrisgoulden's Profile: http://www.excelforum.com/member.php...o&userid=31235
View this thread: http://www.excelforum.com/showthread...hreadid=509017

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Question about decimal places

Hi Chris,

thanks for feeding back, glad it worked for you.

Pete

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for: Format Decimal places? nastech Excel Discussion (Misc queries) 16 November 4th 05 02:25 PM
Excel adds phantom decimal places: why? Dave O Excel Discussion (Misc queries) 1 August 16th 05 06:25 PM
Max decimal places SusieQ Excel Discussion (Misc queries) 1 July 13th 05 07:57 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
decimal places within a formula Paul01 Excel Discussion (Misc queries) 4 June 3rd 05 07:53 PM


All times are GMT +1. The time now is 07:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"