Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Remove part of string

I have a list of names in the format last, first. The whole name is stored
in a variable to be sorted later. How can I remove the , first from the
string before putting it in a cell? Ex. The name is Smith, John. I want to
put this in cell A1 but all I want in A1 is Smith.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Remove part of string

Select Column of data - hit Data / Text To Columns / Delimited / Comma as
delimiter - During wizard highlight the seocnd column and choose 'Do Not
Import'. Hit next and finish.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Erik" wrote in message
...
I have a list of names in the format last, first. The whole name is stored
in a variable to be sorted later. How can I remove the , first from the
string before putting it in a cell? Ex. The name is Smith, John. I want to
put this in cell A1 but all I want in A1 is Smith.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Remove part of string



--

HTH

RP

"Erik" wrote in message
...
I have a list of names in the format last, first. The whole name is

stored
in a variable to be sorted later. How can I remove the , first from the
string before putting it in a cell? Ex. The name is Smith, John. I want

to
put this in cell A1 but all I want in A1 is Smith.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Remove part of string

I think you removed the *whole* string there Bob <g

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Bob Phillips" wrote in message
...


--

HTH

RP

"Erik" wrote in message
...
I have a list of names in the format last, first. The whole name is

stored
in a variable to be sorted later. How can I remove the , first from the
string before putting it in a cell? Ex. The name is Smith, John. I want

to
put this in cell A1 but all I want in A1 is Smith.





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 28/09/2004


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
vlookup part of string... [email protected] Excel Discussion (Misc queries) 6 October 24th 08 01:30 AM
delete a - if it is the last part of a string deb Excel Discussion (Misc queries) 1 September 21st 08 01:18 AM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
Extract Part of String [email protected] Excel Worksheet Functions 1 June 9th 05 08:33 AM
extracting part of string value Dr. Schwartz[_3_] Excel Programming 3 April 23rd 04 01:23 PM


All times are GMT +1. The time now is 12:30 AM.

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"