Forum Discussion
Return a range by looking up one cell.
- Mar 08, 2024
Have you tried naming the various ranges of data, so that the entire range can be displayed? I don't know for sure that it'll work, but it occurs to me; at least it's something you've not named so far.
Would you happen to know a way of to accomplish this?
You need to be a bit more descriptive of what the "this" is. You've talked of needing to access a list of the names. You've talked of using the names in a formula. I can envision a dropdown (data validation) as a way to access a list. Also one of many lookup-type functions. But then you include the notion of including the names (presumably one at a time) in a formula, but you don't say what it is that the formula is supposed to do.
Talk us through the full process (describing it in English, not in "Excelese"; let us worry about the translation into Excel functions or procedures) ... This would probably be easy if we were sitting down face-to-face, because we could go back and forth, clarifying as we go along. Instead, I'm asking you to describe pretty thoroughly what the whole process is here. It might help if you assume:
- you're talking with a relatively intelligent person
- that person knows nothing of gaming, game characters and what one does with them
- that person does know Excel, but wants you to not talk Excel per se, just to talk of the information and what needs to happen to it, with it, etc.
I believe I found a solution!
I made a new table with the character names and their respective named ranges.
Then used xlookup wrapped in indirect.
So the final formula looks like this:
=INDIRECT(XLOOKUP(A1, CharData[Characters], CharData[Named Range]))
I'm very grateful for you help. You definitely got me on the right path.
Thank you!
- mathetesMar 09, 2024Silver ContributorThat's good to hear. Glad I could play a part.