Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paul01
 
Posts: n/a
Default decimal places within a formula


Is there a way to set up a number within an equation to have onlyt 2
decimal places? The cells are already formatted to have this, but the
data within the cells contains more decimal places which is what is
used when the sum() function is run. Since the anwser to this function
is used in comparison with other numbers, the answer needs to come out
to 2 decimal places in order to match up.


--
Paul01
------------------------------------------------------------------------
Paul01's Profile: http://www.excelforum.com/member.php...o&userid=24012
View this thread: http://www.excelforum.com/showthread...hreadid=376301

  #2   Report Post  
MrShorty
 
Posts: n/a
Default


There's an option in the main options dialog to use "precision as
displayed" which would cause it to only use the two decimal places
displayed.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=376301

  #3   Report Post  
TomHinkle
 
Posts: n/a
Default

= int (sum(X:X)*100) / 100



"Paul01" wrote:


Is there a way to set up a number within an equation to have onlyt 2
decimal places? The cells are already formatted to have this, but the
data within the cells contains more decimal places which is what is
used when the sum() function is run. Since the anwser to this function
is used in comparison with other numbers, the answer needs to come out
to 2 decimal places in order to match up.


--
Paul01
------------------------------------------------------------------------
Paul01's Profile: http://www.excelforum.com/member.php...o&userid=24012
View this thread: http://www.excelforum.com/showthread...hreadid=376301


  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 3 Jun 2005 09:51:50 -0500, Paul01
wrote:


Is there a way to set up a number within an equation to have onlyt 2
decimal places? The cells are already formatted to have this, but the
data within the cells contains more decimal places which is what is
used when the sum() function is run. Since the anwser to this function
is used in comparison with other numbers, the answer needs to come out
to 2 decimal places in order to match up.


*array-enter*

=SUM(ROUND(A1:A10,2))

To *array-enter*, hold down <ctrl<shift while hitting <enter. Excel will
place braces {...} around the formula.


--ron
  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 3 Jun 2005 09:31:03 -0700, TomHinkle
wrote:

= int (sum(X:X)*100) / 100



You may be correct in deciphering what the OP wants.

But I would point out that your procedure will give different results from
adding up the entries rounded first to two decimal places.


--ron
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
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 01:31 AM
Adding numbers in a column that have 3 decimal places KimberlyC Excel Worksheet Functions 4 April 24th 05 02:25 AM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 05:56 PM
Decimal places and rounding up (or down) Ash New Users to Excel 3 February 15th 05 09:16 PM
Cell shows formula and not the result of the formula. stumpy1220 Excel Worksheet Functions 2 January 14th 05 06:11 PM


All times are GMT +1. The time now is 10:52 AM.

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

About Us

"It's about Microsoft Excel"