+ Reply to Thread
Results 1 to 10 of 10

Extract String from comma delimited list in cell

  1. #1
    Registered User
    Join Date
    03-29-2019
    Location
    Sheffield, England
    MS-Off Ver
    365
    Posts
    9

    Extract String from comma delimited list in cell

    Hi.....First time poster

    I know similar questions have previously been asked, but I cannot find a solution that quiet solves my issue.

    Capture.JPG

    I have the above basic layout.

    Is there a cell formula that will search Column A, and return the values (as an array?) from Column B; where Column A contains either "All Pages", or a specific Page, ie "Page B"

    The solution I currently have involves splitting the values in Column A across numerous columns, and having INDEX SMALL looking down those columns individually, which has been ok so far while I only have a limited number of entries in each cell......but now I am getting to the point where Column A potentially contains up to 20 different "Pages"

    Any help is greatly appreciated.

    Thank you
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract String from comma delimited list in cell

    You have attached an image. That's not very easy to work with. Also... I'm lazy. I have to re-type your information before I can begin to address your problem. That puts me off completely. Not only that, but (depending on their choice of browser) many other members cannot even see the image.

    So. Do yourself a favour and please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough). However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever).

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Make sure confidential info is removed first!!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-29-2019
    Location
    Sheffield, England
    MS-Off Ver
    365
    Posts
    9

    Re: Extract String from comma delimited list in cell

    Thank you Glenn

    Attached is the basic version of what I have so far........with all the data from Column A split across several columns.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract String from comma delimited list in cell

    Is this what you meant? In A17, copied across and down:

    =IFERROR(INDEX($D:$D,AGGREGATE(15,6,ROW(A$2:A$12)/(ISNUMBER(SEARCH(A$14,A$2:A$12))),ROWS(A$17:A17))),"")

    Edit: I added the file...
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-12-2019 at 12:33 PM.

  5. #5
    Registered User
    Join Date
    03-29-2019
    Location
    Sheffield, England
    MS-Off Ver
    365
    Posts
    9

    Re: Extract String from comma delimited list in cell

    Thank you Glenn

    That is a lot less messy than my solution.

    Is it possible to search Column A for 2 variables as an "and/or" type result?

    Regards

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract String from comma delimited list in cell

    Yes. Each variable in a separate cell? Back in 2 hours.

  7. #7
    Registered User
    Join Date
    03-29-2019
    Location
    Sheffield, England
    MS-Off Ver
    365
    Posts
    9

    Re: Extract String from comma delimited list in cell

    Thanks

    Could it search Column A for both the contents of a cell (A14) and "All Pages"......or would i need to split the contents of Column A?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract String from comma delimited list in cell

    Hi. I had a few other things to do....

    Is this close?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-29-2019
    Location
    Sheffield, England
    MS-Off Ver
    365
    Posts
    9

    Re: Extract String from comma delimited list in cell

    Glenn

    That is absolutely perfect....thank you so much

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract String from comma delimited list in cell

    You're welcome... we got there!!.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Cell containing comma delimited string changes to number format issue
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-20-2018, 03:59 AM
  2. How to extract data from txt (not the usual comma delimited) into excel
    By hellowit in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2017, 03:07 AM
  3. [SOLVED] Help needed on how to extract substrings from comma delimited text
    By kknb0800 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2013, 03:18 PM
  4. Comma delimited list cell to new row code help
    By hoovopotamus in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-11-2011, 09:48 PM
  5. Excel 2007 : Pivot Table String Comma Delimited
    By asyssovers in forum Excel General
    Replies: 0
    Last Post: 06-08-2011, 01:23 AM
  6. Building a comma delimited string from Cell Range
    By Patchworks in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-17-2008, 12:25 AM
  7. Searching a comma delimited string in a cell
    By migpics in forum Excel General
    Replies: 7
    Last Post: 11-26-2007, 05:58 PM

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