+ Reply to Thread
Results 1 to 3 of 3

How do I find and remove things from a data range?

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    10

    How do I find and remove things from a data range?

    Hi,

    Assume that I have these data in a column

    example.com/p1/
    example.com/p1/something
    example.com/p1/somethingelse
    example.com/p2/
    example.com/p2/something
    example.com/p2/somthingelse

    I just want to remove all the parts after /p1/ and /p2/ and make each cell contains only the top level data. How do I do that?

    ex:
    example.com/p1/
    example.com/p1/
    example.com/p1/
    example.com/p2/
    example.com/p2/
    example.com/p2/

    You help will be highly appreciable as I have thousands of data like this.


    Thanks,

    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How do I find and remove things from a data range?

    hi theshaun, try:
    =LEFT(A1,FIND("^",SUBSTITUTE(A1,"/","^",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))))

    drag down the formula

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-25-2013
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: How do I find and remove things from a data range?

    @benishiryo
    Thank you so much for answering on my post. It exactly did what I wanted. Very much appreciate your help :-)

+ 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