+ Reply to Thread
Results 1 to 12 of 12

How to take part of the content from one column and put in next column?

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    How to take part of the content from one column and put in next column?

    Dear Excel Experts,

    I have 5000 urls in one column and I want to take some part of the content from the urls and wanted put in next column in their respective cell.

    Please find the sample to see how I wanted the data in the next column.

    Please help.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to take part of the content from one column and put in next column?

    in c1 copy paste below then drag down
    =SUBSTITUTE(MID(A1,SEARCH("sub_",A1)+4,(FIND("@",SUBSTITUTE(A1,".","@",LEN(A1)-LEN(SUBSTITUTE(A1,".","")))))-(SEARCH("sub_",A1)+4)),"_0_"," ")
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to take part of the content from one column and put in next column?

    Quote Originally Posted by hemesh View Post
    in c1 copy paste below then drag down
    =SUBSTITUTE(MID(A1,SEARCH("sub_",A1)+4,(FIND("@",SUBSTITUTE(A1,".","@",LEN(A1)-LEN(SUBSTITUTE(A1,".","")))))-(SEARCH("sub_",A1)+4)),"_0_"," ")
    Thanks for your suggestion but it is not working for all. When I applied this formula to Sample 2, it is not working. Please find the attachment and look for Sample 2 sheet. I hope you will understand.
    Waiting for your reply.

    Regards
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to take part of the content from one column and put in next column?

    for this you need to use below in C1

    =SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("@",SUBSTITUTE(A1,"/","@",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))))+1,100),".aspx",""),"_"," ")

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: How to take part of the content from one column and put in next column?

    If both types of the sample are mixed you could use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: How to take part of the content from one column and put in next column?

    Check if this one works..
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Saarang84; 05-16-2014 at 05:25 AM.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to take part of the content from one column and put in next column?

    Quote Originally Posted by hemesh View Post
    for this you need to use below in C1

    =SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("@",SUBSTITUTE(A1,"/","@",LEN(A1)-LEN(SUBSTITUTE(A1,"/",""))))+1,100),".aspx",""),"_"," ")
    Dear Hamesh,
    Thank you for your effort. It need little changes to the formula. I have added few more links to the sample sheet and applied your formula which is not giving perfect result like above URL. Basically it is not ignoring %. I have highlighted the result. Could you please look into it and change the formula accordingly.

    Thanks in advance.
    Waiting for your reply.
    PFA
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to take part of the content from one column and put in next column?

    Quote Originally Posted by Saarang84 View Post
    Check if this one works..
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dear Saarang,

    Thank you for your suggestion but this formula is not working.

    Regards

  9. #9
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to take part of the content from one column and put in next column?

    Quote Originally Posted by kalucharan View Post
    Dear Saarang,

    Thank you for your suggestion but this formula is not working.

    Regards
    Actually it is not ignoring %. Please find the recent attachment and you will come to know.

  10. #10
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: How to take part of the content from one column and put in next column?

    Hi,

    You're input strings are of different patterns and each pattern would require a different SUBSTITUTE formula, not every pattern can be checked within the same formula all at once

  11. #11
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to take part of the content from one column and put in next column?

    Quote Originally Posted by Saarang84 View Post
    Hi,

    You're input strings are of different patterns and each pattern would require a different SUBSTITUTE formula, not every pattern can be checked within the same formula all at once
    But if we can ignore % then problem will be solved

  12. #12
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to take part of the content from one column and put in next column?

    you can ignore all strings that appear constantly but you need to use helper column for that hope attached one helps
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-28-2014, 06:42 PM
  2. Search a column for 2 conditions and display the cell content of last match
    By ansridhar in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-17-2014, 06:41 AM
  3. Replies: 7
    Last Post: 10-23-2012, 02:29 PM
  4. Replies: 2
    Last Post: 02-02-2012, 09:02 AM
  5. Replies: 5
    Last Post: 10-26-2011, 11:57 AM

Tags for this Thread

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