+ Reply to Thread
Results 1 to 7 of 7

Need Help With Cleaning Data

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    London
    Posts
    3

    Question Need Help With Cleaning Data

    Hi Everyone,

    This is my first post in this forum... so hello to all

    I need a bit of help from someone that might be able to look at my problem and go "ah come on... that's simple". Unfortunately, after much time and head scratching, I can't see the simplicity of it all.

    Basically what I'm attempting to do is remove text within cells of a column whereby the info I was exporting has merged together.

    To illustrate
    http://widgets.com/something.html'>http://widgets.com/something.html"
    is the cell data that I have

    http://widgets.com/something.html
    is the cell data that I want

    Is there anyway of getting rid of the trailing
    '>http://widgets.com/something.html"
    from each of the cells within the column of data that I have

    I really hope I have been clear enough with my explanations... please ask if you don't understand.

    Thanks a million in advance to anyone that can help me with this riddle I have

    Barry

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    select your data

    Ctrl+H

    replace >http://widgets.com/something.html
    with (leave blank)

    Cheers

  3. #3
    Registered User
    Join Date
    07-10-2008
    Location
    London
    Posts
    3
    Hi arthurbr

    Thanks for the welcome and the response.

    I should've clarified a bit better in my initial post that although this would be the first cell of data:
    http://widgets.com/something.html'>http://widgets.com/something.html"

    The next cell in the column contains completely different info. So to further illustrate:

    First cell:
    http://widgets.com/something.html'>http://widgets.com/something.html"
    Second cell:
    http://redwidgets.com/something.html'>http://redwidgets.com/something.html"

    So I would need to end up with:
    http://widgets.com/something.html
    http://redwidgets.com/something.html
    etc
    etc

    Sorry for the confusion.

    It makes it trickier I'm sure. But is it possible?

  4. #4
    Registered User
    Join Date
    07-09-2008
    Location
    Melbourne
    Posts
    33
    If you need to delete '> and everything after it the following code should do the trick.

    =LEFT(A1,FIND("'>",A1)-1)

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    London
    Posts
    3
    Guys! Ye are absolute legends.

    Thanks Flex. That worked perfectly.

    It's kind of cheeky for me to ask one more thing (promise it's one more )

    Is there a way of removing the text that comes after the .com easily?
    http://widgets.com/something.html
    So that the somthing.html would be removed?

    Regardless... ye have made a really frustratating job so much easier. Thanks again.

  6. #6
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    hi barry,

    if you use this formula, it looks from left to right until it finds the character between the speech marks and deletes everything after it,


    Please Login or Register  to view this content.
    hope it helps
    reg

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by flex
    If you need to delete '> and everything after it the following code should do the trick.

    =LEFT(A1,FIND("'>",A1)-1)
    Alternatively use data - text to columns - Check " delimited" - Use ' as delimiter - Finish

    delete unneeded columns

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1