Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
hellZg8
 
Posts: n/a
Default How to determine the first two carachters in a name

is there a way to deterimine the first two characters in a name for abbrev.

eg. Charlie Brown result =CH
thanks in advance for any help
  #2   Report Post  
Posted to microsoft.public.excel.misc
CaptainQuattro
 
Posts: n/a
Default How to determine the first two carachters in a name


If the name is in cell A1:

=Left(A1,2) will return the two leftmost characters.

similarly Right (A1,2) will give you the last two characters.

If you want to locate characters in the middle of a name, or any other
string, use =MID

e.g. =MID(A1,2,2) will give you the second and third characters in the
string.


--
CaptainQuattro
------------------------------------------------------------------------
CaptainQuattro's Profile: http://www.excelforum.com/member.php...o&userid=32763
View this thread: http://www.excelforum.com/showthread...hreadid=533357

  #3   Report Post  
Posted to microsoft.public.excel.misc
hellZg8
 
Posts: n/a
Default How to determine the first two carachters in a name

This in fact did thank you for your time and effort

"CaptainQuattro" wrote:


If the name is in cell A1:

=Left(A1,2) will return the two leftmost characters.

similarly Right (A1,2) will give you the last two characters.

If you want to locate characters in the middle of a name, or any other
string, use =MID

e.g. =MID(A1,2,2) will give you the second and third characters in the
string.


--
CaptainQuattro
------------------------------------------------------------------------
CaptainQuattro's Profile: http://www.excelforum.com/member.php...o&userid=32763
View this thread: http://www.excelforum.com/showthread...hreadid=533357


  #4   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default How to determine the first two carachters in a name


Hi ckc!

its easy to do. just select cell A1
press Ctrl+H, it will open find and replace window.
in Find what: just press space bar
and leave Replace with: empty. and at last press replace.
where are the spaces...

you can also use a formula to do this
=substitute(A1," ","")


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=533357

  #5   Report Post  
Posted to microsoft.public.excel.misc
ckc_2k
 
Posts: n/a
Default How to determine the first two carachters in a name


great. here i have one question for you that i need to remove space
between two words in same cell(A1) eg; K OSTAS CON STAN TINOU result
should be KOSTASCONSTANTINOU. is it possiable thing??

thanks
ckc.


--
ckc_2k
------------------------------------------------------------------------
ckc_2k's Profile: http://www.excelforum.com/member.php...o&userid=33553
View this thread: http://www.excelforum.com/showthread...hreadid=533357



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default How to determine the first two carachters in a name

=SUBSTITUTE(A1," ","")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ckc_2k" wrote in
message ...

great. here i have one question for you that i need to remove space
between two words in same cell(A1) eg; K OSTAS CON STAN TINOU result
should be KOSTASCONSTANTINOU. is it possiable thing??

thanks
ckc.


--
ckc_2k
------------------------------------------------------------------------
ckc_2k's Profile:

http://www.excelforum.com/member.php...o&userid=33553
View this thread: http://www.excelforum.com/showthread...hreadid=533357



  #7   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How to determine the first two carachters in a name

Another way if you have lots to do and don't want to use formulas in helper
cells.

Select the range
edit|replace
what: (spacebar)
with: (leave blank)
replace all



ckc_2k wrote:

great. here i have one question for you that i need to remove space
between two words in same cell(A1) eg; K OSTAS CON STAN TINOU result
should be KOSTASCONSTANTINOU. is it possiable thing??

thanks
ckc.

--
ckc_2k
------------------------------------------------------------------------
ckc_2k's Profile: http://www.excelforum.com/member.php...o&userid=33553
View this thread: http://www.excelforum.com/showthread...hreadid=533357


--

Dave Peterson
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
How to determine total value of business for sale Margie Campbell Excel Worksheet Functions 0 February 19th 06 08:31 PM
help writing formula to determine salary/overtime sockmodel7 Excel Discussion (Misc queries) 2 December 6th 05 04:32 PM
In the worksheet_change event, how do I determine what occured? Tim Patton Excel Worksheet Functions 6 November 3rd 05 08:38 PM
Code to determine if a cell contains an array function? [email protected] Excel Discussion (Misc queries) 1 August 29th 05 10:35 PM
formula to determine the first column containing any data sd Excel Worksheet Functions 5 November 9th 04 08:06 PM


All times are GMT +1. The time now is 05:42 PM.

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

About Us

"It's about Microsoft Excel"