Extract fraction as a whole number

YasserKhalil

Well-known Member
Joined
Jun 24, 2010
Messages
852
Hello
I want to extract just the fraction as a whole numer even if the fraction has a zero at its end
Example
16.1500 - 12.140 - 10.01 - 60.0060

The results should be

1500 - 140 - 01 - 0060
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hello
I want to extract just the fraction as a whole numer even if the fraction has a zero at its end
Example
16.1500 - 12.140 - 10.01 - 60.0060

The results should be

1500 - 140 - 01 - 0060
Is your example the text in one single cell or are those dashes supposed to represent column breaks between different cells? If the latter, what is your cells formatted as in order to retain the trailing zeroes?
 
Upvote 0
Different formats sir
I know it is weird but these values formatted diffenetly not the same
I don't get it... if they are not text, then they are numbers and numbers do not retain trailing zeroes after a decimal point. The only way to get a number to display trailing zeroes is to format the cell, but the value in the cell would still be a number without a trailing zero... besides cell formatting cannot be being used because the number of digits after the decimal point is not constant. So I don't get it. You might try this formula, but I do not hold out hope that trailing zeroes will be preserved...

=MID(A1,FIND(".",A1)+1,99)
 
Upvote 0
Is there a function that can split the number to whole number and the fraction as a whole numer..
I hope to find a way to solve this problem...
The problem now is the trailing zeroes !!
Simply these are numbers but I want to treat them as text and get my results
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,809
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top