Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2007

Tip: Looking for answers? Try searching our database.

Parsing Last Character in variable length text field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Traci - 04 Oct 2007 16:01 GMT
I need to pull the last character from the data in a text field.  Problem is,
the data is not all the same length.  Sample data:

BBD2
BPN10499B
BPN6499

What I need to do is parse out the last character so i can check to see if
it is a B and filter only those records.

Any help you can provide will be much appreciated!!

Thanks
Rick Rothstein (MVP - VB) - 04 Oct 2007 16:08 GMT
Use the RIGHT function...

=IF(RIGHT(A2,1)="B","Last character is a B","No, it is not a B")

Rick

>I need to pull the last character from the data in a text field.  Problem
>is,
[quoted text clipped - 10 lines]
>
> Thanks
Luke Moraga - 04 Oct 2007 16:11 GMT
I believe you'll want to use the RIGHT function.

e.g.,
=RIGHT(A1,1)

will return the rightmost letter of A1.
Signature

Best Regards,

Luke Moraga

> I need to pull the last character from the data in a text field.  Problem is,
> the data is not all the same length.  Sample data:
[quoted text clipped - 9 lines]
>
> Thanks
tim m - 04 Oct 2007 16:11 GMT
Make a new column next to the the one with your data and try this forumla

=RIGHT(A2,1)

This will give you the last character.  You can then just copy the formula
down.  (In the example I assume your data starts in A2, yours may vary so
just change the formula to match your data start cell.)

> I need to pull the last character from the data in a text field.  Problem is,
> the data is not all the same length.  Sample data:
[quoted text clipped - 9 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.