Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Formatting and adding cells formatted to 2 decimal places

Is there any way that I can "Autosum" a column which has numbers formatted to
2 decimal places - were the "Autosum" adds the numbers as shown in the cell
(not the numbers with full decimals). e.g. 1.2345 will show as 1.23 but when
added includes the,0045 and shows an answer which does not add up according
to the info displayed?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Formatting and adding cells formatted to 2 decimal places

Hi Colin,
Formatting numbers to 2 decimal places doesn't truncate the actual data,
only the displayed data. All decimal places (up to 16, I think) are
remembered by XL, and always used in calculations.
Regards - Dave.

"Colin" wrote:

Is there any way that I can "Autosum" a column which has numbers formatted to
2 decimal places - were the "Autosum" adds the numbers as shown in the cell
(not the numbers with full decimals). e.g. 1.2345 will show as 1.23 but when
added includes the,0045 and shows an answer which does not add up according
to the info displayed?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formatting and adding cells formatted to 2 decimal places

Hi,

It's always struck me as fundamentally flawed to do a calculation with the
deliberate intention of getting an incorrect answer but anyway try this

Tools|Options|calculation
select precision as shown
Excel will display a warning that your answer may be incorrect which you
must accept.

Now do your autosum and only displayed decimal places will be summed.

warning this is global and afffects all calculations

another way
=SUMPRODUCT(LEFT(A1:A2,4)+0)

works for your posted example but will go wrong if you try to add 1.2678 +
21.12345 because it takes the first 4 characters including the decimal point.

Mike

"Colin" wrote:

Is there any way that I can "Autosum" a column which has numbers formatted to
2 decimal places - were the "Autosum" adds the numbers as shown in the cell
(not the numbers with full decimals). e.g. 1.2345 will show as 1.23 but when
added includes the,0045 and shows an answer which does not add up according
to the info displayed?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Formatting and adding cells formatted to 2 decimal places

You could use the ROUND fuction to round the cells to 2 DP

You could also use the ToolsOptionsCalculationPrecision as displayed.

Note the PAD changes all the numbers forever, no turning back.


Gord Dibben MS Excel MVP

On Mon, 5 May 2008 08:30:01 -0700, Colin
wrote:

Is there any way that I can "Autosum" a column which has numbers formatted to
2 decimal places - were the "Autosum" adds the numbers as shown in the cell
(not the numbers with full decimals). e.g. 1.2345 will show as 1.23 but when
added includes the,0045 and shows an answer which does not add up according
to the info displayed?


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
Global percentage decimal places default formatting EdmundPW Excel Discussion (Misc queries) 2 January 18th 08 06:54 PM
conditonally formatting decimal places BigMikeGallagher Excel Discussion (Misc queries) 0 April 6th 06 06:08 PM
Help with formating cells (decimal places) madhead4000 Excel Worksheet Functions 1 April 3rd 06 09:33 PM
Can you set to default the # of decimal places in Format Cells? Amy Setting up and Configuration of Excel 4 March 29th 06 05:08 PM
Adding numbers in a column that have 3 decimal places KimberlyC Excel Worksheet Functions 4 April 24th 05 01:25 AM


All times are GMT +1. The time now is 04:51 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"