Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default extracting digits to the right of a decima point

Hi friends,
have a question regarding excel. I have one column in which I have numbers
like 7.5,7.25,etc. I also have numbers like 45,65,etc. I have succeded in
extracting the left digits from numbers like 7.5 by using the left function
in a IF Formula. I needed to extract only the left digit from numbers having
value below 8. This I could do . Now my question is how to extract the digits
to the right of the decimal point. Remember not all numbers have decimal
points. numbers are varied from 7.5 to 65. I need to extract the right digits
like 5 from 7.5 in numbers having decimals and not from whole numbers like
55.any help will be greatly appreciated. Have a great day.
thank you
steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default extracting digits to the right of a decima point

The INT function truncates digits to the right of the decimal point, rather
than rounding. Subtracting the truncated number from the original number
leaves the decimal portion, if any.

So, if B5 contains 45.975
and B7 contains =INT(B5)
B5 returns 45

=B5 - B7 returns 0.975

Hope this helps,

Hutch

"steve" wrote:

Hi friends,
have a question regarding excel. I have one column in which I have numbers
like 7.5,7.25,etc. I also have numbers like 45,65,etc. I have succeded in
extracting the left digits from numbers like 7.5 by using the left function
in a IF Formula. I needed to extract only the left digit from numbers having
value below 8. This I could do . Now my question is how to extract the digits
to the right of the decimal point. Remember not all numbers have decimal
points. numbers are varied from 7.5 to 65. I need to extract the right digits
like 5 from 7.5 in numbers having decimals and not from whole numbers like
55.any help will be greatly appreciated. Have a great day.
thank you
steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default extracting digits to the right of a decima point


=IF(ISERROR(LEFT(A1,LEN(A1)-FIND(".",A1,1)+1)),"",LEFT(A1,LEN(A1)-FIND(".",A1,1)+1))

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=567649

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
extracting digits to the right of a decima point David Billigmeier Excel Worksheet Functions 0 August 2nd 06 10:05 PM
Pin a callout data point Dave Charts and Charting in Excel 2 April 2nd 06 01:43 AM
Point Assessment Calc? jolver Excel Discussion (Misc queries) 0 January 14th 06 02:24 AM
Mistery digits on excel Bewilder Excel Discussion (Misc queries) 2 October 5th 05 06:28 PM
Displaying only digits after the decimal point Tat Excel Worksheet Functions 4 June 1st 05 06:13 PM


All times are GMT +1. The time now is 09:34 PM.

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"