+ Reply to Thread
Results 1 to 11 of 11

Dynamic and growing list of topics in a cell for analysis

  1. #1
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Dynamic and growing list of topics in a cell for analysis

    Hi all,

    My issue is that I am building a workbook (see minimum viable example attached) that identifies multiple topics that occur in each section of a book chapter for multiple book chapters. This workbook will require the users to be able to see a growing list of multiple topics (i.e., categorical data) as an index somehow as they're inputting the data.

    Each row is a distinct section of a chapter (e.g., 1.1, 1.2, 2.1, 2.2...), and the primary column (or columns) is a list of topics. There will also be columns with information on each chapter section (e.g., title). See my sample workbook.

    The goal of this workbook is to eventually be able to sort and filter by the topics to identify which chapter sections touch on a given topic. Again, there are multiple topics per section, and the folks who will be building this will have to be able to select from previously inputted topics so they don't repeat topics accidentally (e.g., ice cream vs. iced cream). This will eventually be built into 100+ sections and 300+ topics, so usability will have to be taken into account (e.g., it would be tricky to have each topic be its own column). I know this sounds more like a solution that requires a relational database such as Access, but since there would be only two related tables, it would be great if there was a way to solve this in excel, again for usability for users.

    Thank you!

    -Aaron
    Attached Files Attached Files
    Last edited by agrade132; 11-09-2022 at 02:27 PM. Reason: Solved

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Dynamic and growing list of topics in a cell for analysis

    In B2 on analysis tab try below and then drag down:

    =TEXTJOIN(", ",TRUE,IFERROR(IF(FIND($A2,input!$C$2:$C$1000)>0,input!$B$2:$B$1000,""),""))

    update ranges in red if necessary
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Re: Dynamic and growing list of topics in a cell for analysis

    Thank you for this formula on the analysis side, that will work great for compiling the results. Do you have a suggestion for a way to keep a running tally of topics that have already been inputed into the C column? I've heard the VBA has a way of making checklists, but it doesn't seem dynamic by being able to add items to it in real time. If we have to restructure the input sheet or redo the rows/columns, that's okay, so long as it's pretty usable.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Dynamic and growing list of topics in a cell for analysis

    Another option. In A2:

    =LET(t,UNIQUE(TRANSPOSE(TRIM(TEXTSPLIT(TEXTJOIN(",",,input!C2:C5),",")))),t)

    In B2 copied down as far as you need:

    =IF(A2="","",TEXTJOIN(", ",,FILTER(input!$B$2:$B$5,IFERROR(SEARCH(A2,input!$C$2:$C$5),0))))

    Ranges can be set as long as they might need to be.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Dynamic and growing list of topics in a cell for analysis

    as for the checklist of topics. does the section and chapter need to be taken into account when creating this checklist? or do you just want a Unique list of topics that have been used already.
    Using your existing data a Unique List result would be:
    ice cream
    cake
    pies
    sorbet
    cookies
    baked alaska

    Is that all you wanted? or did you want the topics to repeat?

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Dynamic and growing list of topics in a cell for analysis

    if above unique list is what you are looking for then try below anywhere on the INPUT tab:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Re: Dynamic and growing list of topics in a cell for analysis

    Thank you, this is super useful! Pretty much what I'm looking for.

  8. #8
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Re: Dynamic and growing list of topics in a cell for analysis

    Thank you, this solution works great as well!

    -Aaron

  9. #9
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Re: Dynamic and growing list of topics in a cell for analysis

    Hi all,

    Extra challenge question, is this solution possible in Google Sheets?

  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 2403
    Posts
    44,023

    Re: Dynamic and growing list of topics in a cell for analysis

    If you want something also to work in GS... PLEASE TELL US in the FIRST post..., not the 9th.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Registered User
    Join Date
    11-09-2022
    Location
    Rockville, MD, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    6

    Re: Dynamic and growing list of topics in a cell for analysis

    My apologies, I was told after building it to switch to google sheets. For everyone's awareness, someone on a google sheets forum suggested:

    Formula:

    Please Login or Register  to view this content.
    As a google sheets solution for the dynamic list problem.

+ 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] Sort the PO number from a growing list
    By wongsiuon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2021, 07:11 PM
  2. Replies: 5
    Last Post: 05-06-2018, 11:38 AM
  3. Extract list of topics from Google.co.in. by using Crome or Mozilla in VBA
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2018, 03:37 AM
  4. Dropdown to list unique values from growing list?
    By Ymir20000000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2017, 02:13 PM
  5. ban list and watch list for constantly growing column of numbers
    By patrickthenomad in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-24-2015, 10:26 PM
  6. Getting the Sum of a Growing List
    By mmanning in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2014, 09:11 PM
  7. Dynamic Sort for defined, yet growing, data set
    By marishipu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2010, 07:11 PM

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