ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cell Swallows Decimal Places (https://www.excelbanter.com/excel-discussion-misc-queries/155259-cell-swallows-decimal-places.html)

[email protected]

Cell Swallows Decimal Places
 
I have to work on an Excel sheet that someone else prepared and it
behaves differently than any worksheet I've seen: If I enter a number
wirh multiple decimal places, the number is rounded to one decimal
place not only for displaying but also for internal storage
apparently, which causes rounding errors. (The formatting is set to
percent with one decimal place.)

I would like it to store all decimal places internally (and have them
displayed when editing the cell) but only display one decimal place
which is how a "fresh" worksheet behaves and how I thought Excel
"normally" works.

Is there a setting I'm missing or what else can be the cause of this?

Thanks
Oliver


Bob Phillips

Cell Swallows Decimal Places
 
Sounds as though there is worksheet event code changing it.

Right-click on the sheet tab, select 'the View Code option from the menu,
and see if there is code doing it.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message
oups.com...
I have to work on an Excel sheet that someone else prepared and it
behaves differently than any worksheet I've seen: If I enter a number
wirh multiple decimal places, the number is rounded to one decimal
place not only for displaying but also for internal storage
apparently, which causes rounding errors. (The formatting is set to
percent with one decimal place.)

I would like it to store all decimal places internally (and have them
displayed when editing the cell) but only display one decimal place
which is how a "fresh" worksheet behaves and how I thought Excel
"normally" works.

Is there a setting I'm missing or what else can be the cause of this?

Thanks
Oliver




[email protected]

Cell Swallows Decimal Places
 
Sounds as though there is worksheet event code changing it.

Right-click on the sheet tab, select 'the View Code option from the menu,
and see if there is code doing it.


I've checked, but there is not event code (other than Workbook_Open,
but I wrote that).

Oliver


[email protected]

Cell Swallows Decimal Places
 
I've found it, in case anyone cares:

There's a checkbox Tools Options Calculation Accuracy As
Displayed (or something like that, I'm re-translating from the German
version) that causes this behaviour.

Thanks anyway
Oliver


challa prabhu

Cell Swallows Decimal Places
 
Hi,

Do the following:

1. On the Tools menu, click Options. the Options dialog box is displayed.
2. Click the claculations tab.
3. Under the Windows Options, select the Precision as displayed check box.
4. Click the Edit tab.
5. Under the Setting, select the Fixed decimal checkbox, and click the up or
down arrow to specify the number decimal places you for that values in the
cell.
6. Click Ok to save the settings and return to the active worksheet.

Challa Prabhu

" wrote:

I have to work on an Excel sheet that someone else prepared and it
behaves differently than any worksheet I've seen: If I enter a number
wirh multiple decimal places, the number is rounded to one decimal
place not only for displaying but also for internal storage
apparently, which causes rounding errors. (The formatting is set to
percent with one decimal place.)

I would like it to store all decimal places internally (and have them
displayed when editing the cell) but only display one decimal place
which is how a "fresh" worksheet behaves and how I thought Excel
"normally" works.

Is there a setting I'm missing or what else can be the cause of this?

Thanks
Oliver



David Biddulph[_2_]

Cell Swallows Decimal Places
 
Regardless of the advice Challa has given you here, do *NOT* set Tools/
Options/ Edit/ Fixed decimal places, unless you want Excel to change the
values you type in. With that option set to 2 decimal places, if you type
in 12345, then the value in the cell will become 123.45.

Also, Challa seemed to be suggesting turning *ON* the "Precision as
displayed" option, but I believe that the answer to the OP's question is to
turn *OFF* that option.
--
David Biddulph

"challa prabhu" wrote in message
...
Hi,

Do the following:

1. On the Tools menu, click Options. the Options dialog box is displayed.
2. Click the claculations tab.
3. Under the Windows Options, select the Precision as displayed check box.
4. Click the Edit tab.
5. Under the Setting, select the Fixed decimal checkbox, and click the up
or
down arrow to specify the number decimal places you for that values in the
cell.
6. Click Ok to save the settings and return to the active worksheet.

Challa Prabhu


" wrote:

I have to work on an Excel sheet that someone else prepared and it
behaves differently than any worksheet I've seen: If I enter a number
wirh multiple decimal places, the number is rounded to one decimal
place not only for displaying but also for internal storage
apparently, which causes rounding errors. (The formatting is set to
percent with one decimal place.)

I would like it to store all decimal places internally (and have them
displayed when editing the cell) but only display one decimal place
which is how a "fresh" worksheet behaves and how I thought Excel
"normally" works.

Is there a setting I'm missing or what else can be the cause of this?

Thanks
Oliver





All times are GMT +1. The time now is 10:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com