ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   left trim (https://www.excelbanter.com/excel-worksheet-functions/140809-left-trim.html)

Finger Tips

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


Teethless mama

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


Finger Tips

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


Gord Dibben

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



Finger Tips

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




Gord Dibben

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





Finger Tips

left trim
 
worked perfect. Thank you very very much.

"Gord Dibben" wrote:

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






Finger Tips

left trim
 
How can I now cut and paste this info in this new format to somewhere else
for use

"Finger Tips" wrote:

worked perfect. Thank you very very much.

"Gord Dibben" wrote:

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






Harlan Grove[_2_]

left trim
 
Finger Tips wrote...
How can I now cut and paste this info in this new format to somewhere else
for use

....

Well, you've already mentioned the first step - COPY. Presumably you
know how to do that or could find out using online help. As for the
paste step, use Paste Special rather than Paste, but you should read
the help topic on Paste Special in online help for details. You'll
save lots of time using online help rather than newsgroups for things
like this.


Finger Tips

left trim
 
Thanks Harlan

"Harlan Grove" wrote:

Finger Tips wrote...
How can I now cut and paste this info in this new format to somewhere else
for use

....

Well, you've already mentioned the first step - COPY. Presumably you
know how to do that or could find out using online help. As for the
paste step, use Paste Special rather than Paste, but you should read
the help topic on Paste Special in online help for details. You'll
save lots of time using online help rather than newsgroups for things
like this.




All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com