Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to return multiple items from a range to a single cell as a list but user chooses how many items in Google Sheets?

$
0
0

I have variable lists that will have 200–1000 values in them.ex:

1   Reliable2   Practical3   Responsible4   Organized5   Detail-oriented6   Logical7   Hardworking8   Dedicated9   Honest10  Loyal    etc...

The user will be able to put a number in a cell and a different cell will spit out x number of these traits in a comma list.I know how to do this in an if else chain with VLookup if I know how many things I need to return, but can't find any way to this using a loop instead so that the number of times it is repeated is limited. the VLookup also needs to generate a random number for the look up from the number of cells in the range.

So if the cell with number of values is B3 and it has a 3 in it. Then the cell displaying the traits which would have the looping vlookup may display "Loyal, Efficient, Patient"

Is there a way to accomplish this? It seems something that should be simple but I can't find anything online about doing something like this.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>