Thread: RIGHT function
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default RIGHT function

You were finding the comma correctly but but then taking that many characters
from the right so your formula only worked if the comma was central i.e. 8
from the left an 8 from the right.

The correct way to use right is shown in your other replies but I chose to
use MID
i.e. find the comma in the same way as you did and then take every thing
form that mid position(+1). Using len(a1) ensured I took enough characters.

Mike

"Help" wrote:

THank you, that worked perfectly. Can you explain what you did enlieu of
what I was doing?

"Mike H" wrote:

Hi,

Try this
=MID(A1,FIND(",",A1,1)+1,LEN(A1))

or if that's always a space after the comma try this
=MID(A1,FIND(" ",A1,1)+1,LEN(A1))


Mike

"Help" wrote:

In one column I have City State and Zip info. In a nearby column I am
attempting to extract data simply the state and zip. For example in the
first column I have "Clanton, AL 35045". I am attempting to simply put "AL
35045" In a second column. The function I am using is
"=RIGHT(C2,FIND(",",C6,1)". The way I understand this is that I am telling
it to extract everything after the comma. The function works for all
information in cities with seven letters (like Clanton). For all cities with
more or less letters it doesn't function properly (more likely I wrote the
function wrong!). For exammple "Tuscaloosa, AL 35404" extracts as "a, AL
65404" Anyone show me what I am doing wrong here?! Thanks