Page 1
Page 1
Started By
Message

Excel Help - need to isolate the data after the decimal point (fractional?)

Posted on 3/28/15 at 9:03 am
Posted by Crow Pie
Neuro ICU - Tulane Med Center
Member since Feb 2010
25294 posts
Posted on 3/28/15 at 9:03 am
I have a column of numbers that always has 6 digits, then a decimal point, them a series of numbers 4 to 8 characters after the decimal point. I need to isolate just the data after the decimal point ( this could occasionally include letters and not just numbers) can I use excel to do this?

Ex 1: 404010.123456 ( I need to isolate just the 123456)
Ex 2: 607160. 12345C78. ( I need to isolate just the 12345C78)

I tried to use the "truncate" (TRUNC) formula in Excel but i can only get it to isolate the integer (whole number before decimal place)

Ant help greatly appreciated.
This post was edited on 3/28/15 at 9:05 am
Posted by aaronb023
TeamBunt CEO
Member since Feb 2005
11774 posts
Posted on 3/28/15 at 9:13 am to
Assuming data is in column A, in B1 use:

=right(A1,len(A1)-7)
This post was edited on 3/28/15 at 9:16 am
Posted by Crow Pie
Neuro ICU - Tulane Med Center
Member since Feb 2010
25294 posts
Posted on 3/28/15 at 9:25 am to
quote:

Assuming data is in column A, in B1 use:

=right(A1,len(A1)-7)



ok will try ...what is the "len"
function?

ETA Yes, it works!!! It seems that it reporting anything starting with the 7th number or character in the string.
This post was edited on 3/28/15 at 9:32 am
Posted by aaronb023
TeamBunt CEO
Member since Feb 2005
11774 posts
Posted on 3/28/15 at 9:42 am to
Len outputs the number of characters in a string.
Posted by LSUtigerME
Walker, LA
Member since Oct 2012
3789 posts
Posted on 3/28/15 at 9:44 am to
If always after the decimal, and only one is present, can use FIND() also. This will eliminate the 7th digit restriction.
Posted by shel311
McKinney, Texas
Member since Aug 2004
110657 posts
Posted on 3/28/15 at 9:52 am to
Highlight column.

Click on data

Click on text to column

Click on fixed width, click next

Then you can choose where to break up the column in 2. And click either next or finish.

If you have multiple columns and it's in column A, insert a column so column B will be blank, and it'll separate the stuff after the decimal and put it in column B.
Posted by GFaceKillah
Welcome to the Third World
Member since Nov 2005
5935 posts
Posted on 3/28/15 at 10:03 am to
Text to columns. Set the limit as the decimal
Posted by Crow Pie
Neuro ICU - Tulane Med Center
Member since Feb 2010
25294 posts
Posted on 3/28/15 at 12:05 pm to
Thanks to all...this will help to quickly break off/filter specific project cost data (labor/rental equipment/supplies) that was previously a manual process.

Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 3/28/15 at 3:08 pm to
Here's another way, assuming the number is in cell A1:

=A1 - int(A1)
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 3/28/15 at 6:54 pm to
quote:

Here's another way, assuming the number is in cell A1:

=A1 - int(A1)


quote:

Ex 2: 607160. 12345C78. ( I need to isolate just the 12345C78)


That's not a decimal number. Also, it doesn't work for negative numbers like -2.8. You should use TRUNC instead of INT.
Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 3/28/15 at 10:01 pm to
quote:

That's not a decimal number.


True, but then none of the other proposed solutions would work either without throwing in a TRIM().

quote:

it doesn't work for negative numbers like -2.8


Also true, but he indicated he's working with project cost figures, they probably aren't negative.
Posted by HurricaneDunc
Houston
Member since Nov 2008
10472 posts
Posted on 3/29/15 at 8:26 am to
if you have the PowerQuery add-in, you can load it as a table then separate the column by the ".".

By the way, for those not familiar with PowerQuery, you're really missing out on an incredibly functional extension of Excel. I've used it to replace all of our Access model at work.
Posted by MyNameIsInigoMontoya
Woodlands
Member since Oct 2012
585 posts
Posted on 3/30/15 at 7:27 am to
quote:

If always after the decimal, and only one is present, can use FIND() also. This will eliminate the 7th digit restriction.


I would do it using FIND, as well. Something like: =MID(A1,FIND(".",A1)+1,99)
Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 3/30/15 at 7:46 am to
quote:

if you have the PowerQuery add-in, you can load it as a table then separate the column by the ".".


Come to think of it, you can use Excel's Text to Columns Wizard to do the same thing.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram