Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Minivann
 
Posts: n/a
Default In a column of text data, how do I delete random cells that have .

for example, in the column of city, I have some cells with data in this
format:"city,state" and i just want the city.
Do I have to go manually and delete or is there a quicker way?

thank you
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Select the column, press Ctrl+H, key in

,*

into "Find What" and click "Replace All".

HTH
Jason
Atlanta, GA

-----Original Message-----
for example, in the column of city, I have some cells

with data in this
format:"city,state" and i just want the city.
Do I have to go manually and delete or is there a

quicker way?

thank you
.

  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Mini

DataText to ColumnsDelimited by commaNext select the "state" column and "do
not import".

Or if you want to preserve the data in the original column, in an adjacent
column enter

=LEFT(A2,IF(ISERROR(FIND(",",A2,1)),LEN(A2),FIND(" ,",A2,1)-1))

Copy down.


Gord Dibben Excel MVP

On Wed, 26 Jan 2005 11:23:02 -0800, "Minivann"
wrote:

for example, in the column of city, I have some cells with data in this
format:"city,state" and i just want the city.
Do I have to go manually and delete or is there a quicker way?

thank you


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
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 06:55 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 01:57 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 08:17 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:55 AM
How do I split a column having numbers and text in a random order rana8689 Excel Worksheet Functions 2 December 17th 04 10:14 PM


All times are GMT +1. The time now is 11:42 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"