Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Parsing Last Character in variable length text field

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Parsing Last Character in variable length text field

I believe you'll want to use the RIGHT function.

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

will return the rightmost letter of A1.
--
Best Regards,

Luke Moraga


"Traci" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default Parsing Last Character in variable length text field

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.)

"Traci" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Validation for Length & Character Type Rob Excel Discussion (Misc queries) 3 September 20th 07 01:11 PM
dynamic character counter for merged cell text field JASelep Excel Worksheet Functions 1 August 29th 07 07:24 PM
Sort text list by character length - how? masterdiablo13 Excel Worksheet Functions 2 July 16th 06 07:45 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM


All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"