Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 17
Default Decimal point


I have a cell that reads 21.59 [for example] but when I click on it, the
data entry field on the tool bar extends that number to 6 decimal places.
How do I get Excel to read the number only as 21.59? Assuming that the two
decimal place version is display only.

I ask this because this data is going to populate a SQL database over which
I have no control and I don't want my price data displaying on my website to
6 decimal places!

Thanks
David


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Decimal point

You'll have to correct the data

or use a helper column

a2 = 21.591234
b2 = round(a2,2)

Then use B2 for the database.
If you can work on a copy of the data, you can copy/paste_by_value the
helper column over the original data. Then delete teh helper column.
But work on a copy if you need the original more significant data.

Steve


On Wed, 26 Jul 2006 10:58:30 +0100, David wrote:


I have a cell that reads 21.59 [for example] but when I click on it, the
data entry field on the tool bar extends that number to 6 decimal places.
How do I get Excel to read the number only as 21.59? Assuming that the
two
decimal place version is display only.

I ask this because this data is going to populate a SQL database over
which
I have no control and I don't want my price data displaying on my
website to
6 decimal places!

Thanks
David


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default Decimal point

David

Set to 2 decimal places display as you have done.

Then go to ToolsOptionsCalculation and Checkmark "Precision as displayed"

This is a Workbook setting so will be applied to all sheets in the book.

Note: this will permanently change the value to 21.59

Might be best to do this on a copy of the workbook just for exporting purposes.


Gord Dibben MS Excel MVP

On Wed, 26 Jul 2006 10:58:30 +0100, "David" wrote:


I have a cell that reads 21.59 [for example] but when I click on it, the
data entry field on the tool bar extends that number to 6 decimal places.
How do I get Excel to read the number only as 21.59? Assuming that the two
decimal place version is display only.

I ask this because this data is going to populate a SQL database over which
I have no control and I don't want my price data displaying on my website to
6 decimal places!

Thanks
David


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Decimal point

Neat, always looking for options like that - must have mssed it.

Steve

On Wed, 26 Jul 2006 16:51:53 +0100, Gord Dibben <gorddibbATshawDOTca
wrote:

David

Set to 2 decimal places display as you have done.

Then go to ToolsOptionsCalculation and Checkmark "Precision as
displayed"

This is a Workbook setting so will be applied to all sheets in the book.

Note: this will permanently change the value to 21.59

Might be best to do this on a copy of the workbook just for exporting
purposes.


Gord Dibben MS Excel MVP

On Wed, 26 Jul 2006 10:58:30 +0100, "David" wrote:


I have a cell that reads 21.59 [for example] but when I click on it, the
data entry field on the tool bar extends that number to 6 decimal
places.
How do I get Excel to read the number only as 21.59? Assuming that the
two
decimal place version is display only.

I ask this because this data is going to populate a SQL database over
which
I have no control and I don't want my price data displaying on my
website to
6 decimal places!

Thanks
David

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
Display a digit before or after the decimal point in another cell Robert Monks Excel Worksheet Functions 4 December 3rd 05 09:18 AM
format inplied decimal point c62ip64 Excel Discussion (Misc queries) 8 November 16th 05 03:09 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
Fixing a decimal point dave Excel Discussion (Misc queries) 1 April 14th 05 07:50 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM


All times are GMT +1. The time now is 02:11 PM.

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"