left trim

F

Finger Tips

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
 
G

Gord Dibben

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
 
F

Finger Tips

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.
 
G

Gord Dibben

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/training/CR061831141033.aspx


Gord
 
F

Finger Tips

worked perfect. Thank you very very much.

Gord Dibben said:
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/training/CR061831141033.aspx


Gord
 
F

Finger Tips

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

Harlan Grove

Finger Tips said:
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.
 
F

Finger Tips

Thanks Harlan

Harlan Grove said:
....

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.
 
Top