Thanks:  0
Likes:  0

# Thread: Deleting part of a cell

1. Hello,

I want to delete part of a cell in Excel. For example if a cell had the data "BlueGreen" how would I delete the "Blue" bit just to leave the "Green" bit behind? Surely there is an easier way then physically deleting the first part in each cell??? I have about 4000 cells to work on!!
Jaybeen.

2. Hiya,

Use the following formula to strip out everything after the ...

=RIGHT(A1,LEN(A1)-SEARCH("",A1))

And if you just wanted to pick up the first part try...

=LEFT(A1,LEN(A1)-SEARCH("",A1)-1)

Rgds
AJ

[ This Message was edited by: AJ on 2002-04-05 02:59 ]

3. I want to separate this -
3200x13998
or
2453x9900

into 2 cells; ie.
[3200] [13998]
[2453] [9900]

I used the formulas....

=LEFT(JE,LEN(JE)-SEARCH("X",JE)-1)
=RIGHT(J3,LEN(J3)-SEARCH("X",J3))

this produced -
[3200] [13998]
[245] [9900]

Is there another formula for the left side that will work in either case ?

Thanx,
REABTBN

4. REABTBN, try the Text to columns Wizard found under Data.

5. Dave,

Thanks - I tried Data / Test to Columns -
Checked Treat consecutive delimiters as one

no apparent effect.

Regards,
REABTBN

6. Dave,

Thanks - I tried Data / Test to Columns -
Checked Treat consecutive delimiters as one

no apparent effect.

Regards,
REABTBN

7. On 2002-04-05 02:30, jaybeen wrote:
Hello,

I want to delete part of a cell in Excel. For example if a cell had the data "BlueGreen" how would I delete the "Blue" bit just to leave the "Green" bit behind? Surely there is an easier way then physically deleting the first part in each cell??? I have about 4000 cells to work on!!
Jaybeen.
At Step 2 of 3 of the Text to Columns wizard...

1. Check the "Other" box and enter "" into its field.
2. Also, check the "Treat consecutive delimiters as one" check box.

At Step 3 of 3 select the first parsed column, assign "Do not import column (Skip)" attribute, and press [ Finish ].

[ This Message was edited by: Mark W. on 2002-04-08 15:41 ]

8. Thanks. No difference. But thanks for the info.
REABTBN

9. select the column and go to the Edit menu, and select "Replace". You want to replace "Blue//" with nothing.

This works.

10. If your data is always in that format "Blue\Green", but the text changes (Red\Orange), and you always want just the second part, do a search and replace with a wild card, as in replace *\ with nothing.

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•