Excel 2002: Single step of selecting characters

G

Guest

Dear Sir,

May I know is there a single step to select the characters I wanted as
follows:
(4th and 5th character from the left)

A B
PKHDJ000163 DJ
PKHCN000214 CN
PKHSB000266 SB
PKHDN000744 DN
PKHBF000456 BF

Currently I need two steps to get the answer. I am using =RIGHT(A1,5) at B1
and = RIGHT(B1,2) at C1.


Thanks

Low
 
P

Pete_UK

Try this:

=MID(A1,4,2)

This takes the middle of the string, starting with the 4th character
and taking 2 characters.

Hope this helps.

Pete
 
G

Guest

Hello Max,

Thanks for your formula.

It works pretty well.


Kind Regards

Low Seng Kuang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top