Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Creating a column with just data before comma in another column

I have a spreadsheet with many records. One column has city then comma and
state and zip. I need to have a column with just city. Tried saving as text
file but the quotes prevented me from pulling just what was before the comma.
Help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Ian is offline
external usenet poster
 
Posts: 238
Default Creating a column with just data before comma in another column

=LEFT(A1,FIND(",",A1)-1)
assumes city/state/zip data is in A1.
---
Ian
--
"Help with text manipulation" <Help with text
wrote in message
...
I have a spreadsheet with many records. One column has city then comma and
state and zip. I need to have a column with just city. Tried saving as
text
file but the quotes prevented me from pulling just what was before the
comma.
Help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Creating a column with just data before comma in another column

DataText to ColumnsDelimited by commaFinish.

Make sure you have an empty column to the right.


Gord Dibben MS Excel MVP

On Sun, 18 Nov 2007 09:14:00 -0800, Help with text manipulation <Help with text
wrote:

I have a spreadsheet with many records. One column has city then comma and
state and zip. I need to have a column with just city. Tried saving as text
file but the quotes prevented me from pulling just what was before the comma.
Help


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
Creating a new list of repeating data in a column Prin825 Excel Worksheet Functions 1 October 26th 07 10:13 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
Creating charts - first row&column treated as normal data Enzo Charts and Charting in Excel 4 July 6th 06 09:28 PM
Creating a column of numbers from a column with some blanks? Knut Excel Discussion (Misc queries) 0 March 20th 06 12:36 AM
creating a date column from seperate data T.O. Excel Worksheet Functions 3 December 20th 05 01:22 PM


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