#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default left trim

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default left trim

=LEFT(A1,FIND(",",A1)-1)

"Finger Tips" wrote:

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default left trim

Where do I put this and use this?

"Teethless mama" wrote:

=LEFT(A1,FIND(",",A1)-1)

"Finger Tips" wrote:

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default left trim

Copy and paste the formula ro any cell except A1.

Will return 1 Airport Boulevard into that cell as long as A1 contains

1 Airport Boulevard, Gentry, AR 72734


Gord Dibben MS Excel MVP

On Sat, 28 Apr 2007 05:20:00 -0700, Finger Tips
wrote:

Where do I put this and use this?

"Teethless mama" wrote:

=LEFT(A1,FIND(",",A1)-1)

"Finger Tips" wrote:

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default left trim

Worked great thanks. How do I run it for a group of cells. I have a column
that contains several thousand cells that I need to do this for.

"Gord Dibben" wrote:

Copy and paste the formula ro any cell except A1.

Will return 1 Airport Boulevard into that cell as long as A1 contains

1 Airport Boulevard, Gentry, AR 72734


Gord Dibben MS Excel MVP

On Sat, 28 Apr 2007 05:20:00 -0700, Finger Tips
wrote:

Where do I put this and use this?

"Teethless mama" wrote:

=LEFT(A1,FIND(",",A1)-1)

"Finger Tips" wrote:

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default left trim

Place the formula in the top cell of a column adjacent to the data column then
double-click on the fill handle of the cell.

i.e. data strings in column A

In B1 enter the formula then hover the mouse pointer over the bottom right
corner of B1. When you see a black cross, double-click on that. The formula
will be copied down.

When you get a few minutes(or hours) take a look at these sites for help on
working with Excel.

Some tutorial sites for basics of Excel........

http://www.usd.edu/trio/tut/excel/index.html

http://www.baycongroup.com/el0.htm

http://office.microsoft.com/en-us/tr...831141033.aspx


Gord

On Sat, 28 Apr 2007 13:06:01 -0700, Finger Tips
wrote:

Worked great thanks. How do I run it for a group of cells. I have a column
that contains several thousand cells that I need to do this for.

"Gord Dibben" wrote:

Copy and paste the formula ro any cell except A1.

Will return 1 Airport Boulevard into that cell as long as A1 contains

1 Airport Boulevard, Gentry, AR 72734


Gord Dibben MS Excel MVP

On Sat, 28 Apr 2007 05:20:00 -0700, Finger Tips
wrote:

Where do I put this and use this?

"Teethless mama" wrote:

=LEFT(A1,FIND(",",A1)-1)

"Finger Tips" wrote:

Hello, I need a query that will left trim everything after the first comma in
a string.

Example

1 Airport Boulevard, Gentry, AR 72734

I need just the street address to remain.

Also some of the cells in the column are blank, some cells have only the
city and state. Also need to know hoe the run it and from where. Thanks




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
Column labels run right to left, not left to right tmassey Excel Discussion (Misc queries) 1 November 10th 06 11:03 AM
Trim Steved Excel Worksheet Functions 7 August 1st 06 05:43 AM
Trim stapleton2308 Excel Discussion (Misc queries) 4 February 15th 06 06:09 PM
How to change the right-to-left worksheet to left-to-right workshe RAMA Excel Discussion (Misc queries) 1 July 4th 05 01:57 PM
trim geza Excel Worksheet Functions 2 June 8th 05 07:03 PM


All times are GMT +1. The time now is 07:55 PM.

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"