Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I Limit decimal places in a string cell reference

I am referencing a cell which has 1 decimal place yet it shows about 12
places right of the decimal in the string. What am I doing wrong?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How do I Limit decimal places in a string cell reference

Use this:

=TEXT(A1,"0.0")

or something like this:

="Result is: "&TEXT(A1,"0.0")

Hope this helps.

Pete

On Dec 29, 2:41*pm, Ozinus wrote:
I am referencing a cell which has 1 decimal place yet it shows about 12
places right of the decimal in the string. What am I doing wrong?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I Limit decimal places in a string cell reference


The cell DOING the referencing isn't formatted properly.

CTRL+1 will open the format box.

You need to be careful with references, your problem shows how data can
LOOK one way but actually be another. The cell you're referencing
appears to have a long calculated value in it with many decimal places.
It is formatted to only show 1 decimal place...which is usually OK.

But if you start doing calculations against that cell, you'll start to
notice discrepancies in the resulting math. That's because the number is
really much longer than you're seeing.

To eliminate the discrepancy, you need to round off those values
properly. Look at the help files on ROUND and MROUND. You can do the
rounding in the cell itself or in the cells that reference that cell,
just remember to do it.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=44794

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How do I Limit decimal places in a string cell reference

Either
a) format the cell to display only 1 decimal place
or
b) use a formula such as =ROUND(A1,1) to round the actual stored value to
one decimal place
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Ozinus" wrote in message
...
I am referencing a cell which has 1 decimal place yet it shows about 12
places right of the decimal in the string. What am I doing wrong?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default How do I Limit decimal places in a string cell reference

Another way is to use FIXED function, i.e.

=FIXED(A1,1)
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
Cell Swallows Decimal Places [email protected] Excel Discussion (Misc queries) 5 August 28th 07 02:17 PM
appended a cell, but need to keep decimal places [email protected] Excel Discussion (Misc queries) 2 April 11th 07 10:31 PM
decimal places in format cell tom Excel Discussion (Misc queries) 2 February 16th 07 09:07 PM
How many decimal places can a cell display? Spaz Excel Worksheet Functions 10 April 3rd 06 08:33 PM
How do I insert 2 decimal places to a number in cell? Rebecca Martinez Excel Worksheet Functions 6 July 7th 05 07:12 PM


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