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 / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Number decimal place

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James8309 - 28 May 2008 08:21 GMT
Hey guys

I have bunch of numbers in different decimals in column B and C

I try to compare whether value in cells next to each other are same or
not.

I am having problems with decimal points because

e.g. 1.90 doesn't return true with 1.901

I went to number format and changed to two decimal points and it still
doesn't work because value is still 1.901.

how do i permanently change decimal points?

thank you everyone.
Nick - 28 May 2008 09:20 GMT
> Hey guys
>
[quoted text clipped - 13 lines]
>
> thank you everyone.

You could round the number using Excel's Round function. There even
seems to be roundup and rounddown functions.
muddan madhu - 28 May 2008 11:08 GMT
in C1 u have 1.901 , in D1 use =TRUNC(C1,2)

> > Hey guys
>
[quoted text clipped - 18 lines]
>
> - Show quoted text -
joeu2004 - 28 May 2008 12:01 GMT
> I am having problems with decimal points because
> e.g. 1.90 doesn't return true with 1.901
> I went to number format and changed to two decimal
> points and it still doesn't work because value is
> still 1.901.

Right.  Formatting only changes appearance, not the underlying value.

> how do i permanently change decimal points?

Two ways:  (a) explicitly round (or truncate) all relevant
computations, or at least round/truncate the operands of the
comparison; or (b) go to Tools / Options / Calculations and set
Precision As Displayed.

However, be wary of doing #b.  If you have not been careful with cell
formats, you can end up permanently losing higher precision of some
constants.
 
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.