Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Formatting and adding cells formatted to 2 decimal places

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Colin - 05 May 2008 16:30 GMT
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?
Dave - 05 May 2008 16:38 GMT
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.

> 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?
Mike H - 05 May 2008 16:55 GMT
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

> 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?
Gord Dibben - 05 May 2008 22:59 GMT
You could use the ROUND fuction to round the cells to 2 DP

You could also use the Tools>Options>Calculation>Precision as displayed.

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

Gord Dibben  MS Excel MVP

>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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.