How to extract last digit(s) from numbers with multiple decimal places

Samlise

New Member
Joined
Nov 8, 2013
Messages
27
Hi Everyone

I have reference numbers and want to extract the number or numbers after the last decimal place


So I have 1.4.5 and want to extract the last digit, (5)

But the problem I can't get around is when it goes in to the tens, so 1.4.15 and extracting the 15 but using the same formula

Any advice gratefully received
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi, here is one option.

Book2
AB
11.4.55
21.4.1515
31.4.151564151564
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=0+(RIGHT(SUBSTITUTE(A1,".",REPT(" ",LEN(A1))),LEN(A1)))
 
Upvote 0
or maybe Power Query
rawrawText After Delimiter
1.4.151.4.1515
1.4.51.4.55
1.41.44

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Type = Table.TransformColumnTypes(Source,{{"raw", type text}}),
    TAD = Table.AddColumn(Type, "Text After Delimiter", each Text.AfterDelimiter([raw], ".", {0, RelativePosition.FromEnd}), type text)
in
    TAD
 
Upvote 0
probably an easier way
=RIGHT(A2,(LEN(A2)-FIND("*",SUBSTITUTE(A2,".","*",LEN(A2)-LEN(SUBSTITUTE(A2,".",""))))))
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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