LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default how do i get only the decimal value in excel

Thanks, Martin. Vardoo and Martin -- I would only note two things regarding
the two formulas below (1) if you use INT instead of TRUNC with negative
numbers, different results will be returned for different numbers (e.g. the
below INT formula will return 0.55 if you pass in -23.45 as the argument --
the Excel help file provides good coverage of the difference between INT and
TRUNC) and (2) the use of a multiplier to remove the decimal point from the
result can get more involved if you are not sure that the fractional part of
the number will contain two digits (e.g. 45).

I hope that helps.

"MartinW" wrote:


Hi vardoo,

=A1-INT(A1) will return 0.45

=(A1-INT(A1))*100 will return 45

HTH
Martin



 
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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
excel validation to 1 decimal place Tracy New Users to Excel 4 February 23rd 05 11:09 PM
How do I change the number of decimal places displayed in Excel Dan Excel Discussion (Misc queries) 1 February 23rd 05 10:31 PM
How do I override fixed decimal place settings in EXcel 2003? jroyv Excel Worksheet Functions 2 February 11th 05 06:07 PM
EXCEL Decimal changes during WORD Merge svlm Excel Discussion (Misc queries) 1 January 5th 05 04:33 PM


All times are GMT +1. The time now is 06:44 AM.

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"