View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\) Rick Rothstein \(MVP - VB\) is offline
external usenet poster
 
Posts: 2,202
Default Parsing Last Character in variable length text field

Use the RIGHT function...

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

Rick

"Traci" wrote in message
...
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