ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Deleting text in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/217950-deleting-text-cell.html)

Gemi

Deleting text in a cell
 
I have a 600 row worksheet were I need to remove the text to the left of the
first space in a cell, all are different lengths. Is there a formula for
that?
For example:
September 8464-005 pin
July 14386 brg
May 5028 washer

In the above I would need to remove the months from each cell. The only
commonality would be the space after the month. End result would be:
8464-005 pin
14386 brg
5028 washer

Any help is greatly appreciated!

Lee


Don Guillett

Deleting text in a cell
 
Assuming the month is the first word.

Sub findblank()
For Each c In range("a2:a22") 'Selection
MsgBox Right(c, Len(c) - instr(c," "))
Next
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Gemi" wrote in message
...
I have a 600 row worksheet were I need to remove the text to the left of
the
first space in a cell, all are different lengths. Is there a formula for
that?
For example:
September 8464-005 pin
July 14386 brg
May 5028 washer

In the above I would need to remove the months from each cell. The only
commonality would be the space after the month. End result would be:
8464-005 pin
14386 brg
5028 washer

Any help is greatly appreciated!

Lee



FSt1

Deleting text in a cell
 
hi
you could use a fomula in a helper column.
assuming the date in question is in column a.....

=MID(A2,LEN(LEFT(A2,FIND(" ",A2,1)))+1,999)

copy down as far as needed you could then copy the helper column and paste
special values over the old data.

regards
FSt1

"Gemi" wrote:

I have a 600 row worksheet were I need to remove the text to the left of the
first space in a cell, all are different lengths. Is there a formula for
that?
For example:
September 8464-005 pin
July 14386 brg
May 5028 washer

In the above I would need to remove the months from each cell. The only
commonality would be the space after the month. End result would be:
8464-005 pin
14386 brg
5028 washer

Any help is greatly appreciated!

Lee


Rick Rothstein

Deleting text in a cell
 
A little shorter....

=MID(A1,FIND(" ",A1&" ")+1,99)

where the 99 just has to be a number that is larger than the maximum length
of any of the text in the cell (99 was my guess at that number).

--
Rick (MVP - Excel)


"FSt1" wrote in message
...
hi
you could use a fomula in a helper column.
assuming the date in question is in column a.....

=MID(A2,LEN(LEFT(A2,FIND(" ",A2,1)))+1,999)

copy down as far as needed you could then copy the helper column and
paste
special values over the old data.

regards
FSt1

"Gemi" wrote:

I have a 600 row worksheet were I need to remove the text to the left of
the
first space in a cell, all are different lengths. Is there a formula for
that?
For example:
September 8464-005 pin
July 14386 brg
May 5028 washer

In the above I would need to remove the months from each cell. The only
commonality would be the space after the month. End result would be:
8464-005 pin
14386 brg
5028 washer

Any help is greatly appreciated!

Lee



FSt1

Deleting text in a cell
 
thanks for the tip
regards
FSt1

"Rick Rothstein" wrote:

A little shorter....

=MID(A1,FIND(" ",A1&" ")+1,99)

where the 99 just has to be a number that is larger than the maximum length
of any of the text in the cell (99 was my guess at that number).

--
Rick (MVP - Excel)


"FSt1" wrote in message
...
hi
you could use a fomula in a helper column.
assuming the date in question is in column a.....

=MID(A2,LEN(LEFT(A2,FIND(" ",A2,1)))+1,999)

copy down as far as needed you could then copy the helper column and
paste
special values over the old data.

regards
FSt1

"Gemi" wrote:

I have a 600 row worksheet were I need to remove the text to the left of
the
first space in a cell, all are different lengths. Is there a formula for
that?
For example:
September 8464-005 pin
July 14386 brg
May 5028 washer

In the above I would need to remove the months from each cell. The only
commonality would be the space after the month. End result would be:
8464-005 pin
14386 brg
5028 washer

Any help is greatly appreciated!

Lee





All times are GMT +1. The time now is 06:20 AM.

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