Return Value embedded at the end of Text String

tichota

New Member
Joined
Feb 12, 2008
Messages
12
I'm having trouble with the forumula to return the value at the end of text string. Below is a sample of the list I'm working off of. Want to retrn the value at the end (everything right of the last period). Any thoughts? Thanks


<TABLE style="WIDTH: 384pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=512 border=0 x:str><COLGROUP><COL style="WIDTH: 48pt" span=8 width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 384pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" width=512 colSpan=8 height=17>400000210 ORIGINAL TOWN S 55' LT 4 BLK 5 ..................................... 977.66</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400000377 ORIGINAL TOWN LT 7 BLK 6 ........................................... 963.88</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400000652 ORIGINAL TOWN LT 1 BLK 9 ........................................... 1,072.46</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400000857 ORIGINAL TOWN LT 6 BLK 11 .......................................... 192.64</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001314 ORIGINAL TOWN LT 2 XC S 49' OF W 33.6' BLK 17 ...................... 1,146.56</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001454 ORIGINAL TOWN LT 4 BLK 18 .......................................... 628.71</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001489 ORIGINAL TOWN S 1/2 LT 1 & S 1/2 LT 2 BLK 19 ....................... 1,762.96</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001748 ORIGINAL TOWN E 32.5' LT 7 BLK 21 .................................. 283.58</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001896 ORIGINAL TOWN LOT 3 BLK 27 ......................................... 634.33</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; mso-ignore: colspan" colSpan=8 height=17>400001934 ORIGINAL TOWN S 92' LOT 5 BLK 27 ................................... 509.54</TD></TR></TBODY></TABLE>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Excel Workbook
AB
1My Imported DataMy UDF
2400000210 ORIGINAL TOWN S 55' LT 4 BLK 5 ..................................... 977.66977.66
3400000377 ORIGINAL TOWN LT 7 BLK 6 ........................................... 963.88963.88
4400000652 ORIGINAL TOWN LT 1 BLK 9 ........................................... 1,072.461072.46
5400000857 ORIGINAL TOWN LT 6 BLK 11 .......................................... 192.64192.64
6400001314 ORIGINAL TOWN LT 2 XC S 49' OF W 33.6' BLK 17 ...................... 1,146.561146.56
7400001454 ORIGINAL TOWN LT 4 BLK 18 .......................................... 628.71628.71
8400001489 ORIGINAL TOWN S 1/2 LT 1 & S 1/2 LT 2 BLK 19 ....................... 1,762.961762.96
9400001748 ORIGINAL TOWN E 32.5' LT 7 BLK 21 .................................. 283.58283.58
10400001896 ORIGINAL TOWN LOT 3 BLK 27 ......................................... 634.33634.33
11400001934 ORIGINAL TOWN S 92' LOT 5 BLK 27 ................................... 509.54509.54
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B2=GetLastNumber(A2)



Paste into a Standard Module:

Code:
Function GetLastNumber(R As Range) As Double
    NumPos = InStrRev(R, "...") + 4
GetLastNumber = Mid(R, NumPos) + 0
End Function
 
Upvote 0
Or as a basic formula
Code:
=MID(A1,FIND(". ",A1,1)+2,255)

Add +0 to the end if you want to return the result as numeric data.

This works for all the examples given, although if you have other data that contains the string ". " somewhere else other than immediately before the last number, it won't work properly.
 
Upvote 0
Code:
=right(a1,len(a1)-find("@",substitute(a1,".","@",len(a1)-1-len(substitute(a1,".","")))))
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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