Public Function exright(Str)
    Dim i, NumStr1
    NumStr1 = ""

    For i = Len(Str) To 1 Step -1
        If (Mid(Str, i, 1)) <> " " Then
            NumStr1 = Mid(Str, i, 1) & NumStr1

Else
Exit For

        End If
    Next i
    exright = NumStr1
End Function



On Thu, May 6, 2010 at 6:15 PM, anand shivappa <anand.shiva...@gmail.com>wrote:

> Please help out. I got struct here.
>
>
>
> On Thu, May 6, 2010 at 5:45 PM, anand shivappa 
> <anand.shiva...@gmail.com>wrote:
>
>> Hi Everyone,
>>
>> I need to extract a rightmost word in a line through excel functions.
>>
>> Like USA Street is having no 10.  I need to extract the last word like 10.
>>
>> Please help me out.
>>
>>
>> Thanks and Regards,
>> Anand S
>>
>>
>> --
>> When everything fails Patience will win
>>
>
>
>
> --
> When everything fails Patience will win
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> HELP US GROW !!
>
> We reach over 6,800 subscribers worldwide and receive many nice notes about
> the learning and support from the group.Let friends and co-workers know they
> can subscribe to group at
> http://groups.google.com/group/excel-macros/subscribe
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to