Thanks Thanks:  0
Likes Likes:  0
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Deleting part of a cell

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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!!
    Please help and regards,
    Jaybeen.

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

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




  5. #5
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Dave,

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

    no apparent effect.

    Regards,
    REABTBN

  6. #6
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Dave,

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

    no apparent effect.

    Regards,
    REABTBN

  7. #7
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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!!
    Please help and regards,
    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. #8
    New Member
    Join Date
    Apr 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

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

  9. #9
    New Member
    Join Date
    Apr 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

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

    This works.

  10. #10
    New Member
    Join Date
    Mar 2002
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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