Forum Discussion

Munchytime's avatar
Munchytime
Copper Contributor
Dec 12, 2022
Solved

Pull in multiple rows of data from a single input

I'm trying to pull in multiple rows of data based off of a data validation list from a single cell. For example, if I have fifteen pieces of data attached to a single input, I would like for that sin...
  • mathetes's avatar
    mathetes
    Dec 12, 2022

    Munchytime 

     

    The Google Sheet was "View only," but fortunately it does permit downloading to Excel, so I did that and edited in in Excel. I've attached what I am guessing to be what you would like to do. But it's a guess. 

     

    A couple of observations: the primary one being that you've made what I consider to be a mistake, in that you've paid a lot of attention to making things "look sexy" when you haven't yet figured out the basic functionality. And that very effort--focus on appearance--can get in the way of functionality. So as a general rule in design, I suggest you concentrate on making it work first; then look to the "looks" of it. 

    1. What I have in mind, first, is the merging of cells in column B of your Data sheet. To the human eye, it absolutely looks clearer, neater, when the higher level name only appears once; but to a database, it's actually more accurate when that higher level category is on each row to which it applies. (A general rule for good database design is to avoid merging cells; this is not just my personal idea--I've read in various professional articles the same warning or advice; merged cells can look good, but they can create problems, especially when used in a database. It is different when we're talking of the "output" or report end of things.)
    2. Related to that first point: an effectively designed database does NOT have empty rows. All that does is take up space.
    3. Having a single column that contains the higher level attributed, and then only one row for each secondary level that exists, enables you to then add new rows to (for example) the "BORING PACK" category in any row. The "Boring Pack" entries don't all have to be in contiguous rows.
    4. So, for example, you'll see I've added several individual items--"out of order"--yet they appear where needed on the output sheet.

    A related suggestion would be that--especially if you're going potentially to be adding items in greater quantity--you might be better off doing the extraction on separate pages for each category. [In this existing workbook, for example, if you were to create more than 15 "learning Pack Items" under the category of "Boring" you'd be running into a #SPILL problem when it hits the first of the Fun Pack rows.

     

    You might want to consider creating a single "dashboard" sheet where you specify the category and then extract the relevant items. Depends really on your objective with this. If it's to track individual completions of courses, for example, that would dictate one kind of design, whereas if your objective is to catalog all courses, .....

Resources