I am working on a handy reference sheet for my DnD Games, that includes 10 pre-planned encounters of varying difficulty that I want to reference on an Initiative Sheet by referencing the Encounter Number (1-10), but am having difficulty with generating the entire list of monsters. Here are some reference screenshots to what I am trying to accomplish:
Initiative Tracker
This is the Initiative Tracker (Sheet "Initiative" that I have and am looking to populate by the reference number at the top (So inputting "1" would return a list of monsters from the Encounter Generator listed as encounter "1")
Encounter Generator
This is the table (Sheet "ENCOUNTER PROTO") that I want to be able to populate in the table, the Encounter Number is on the side and I want that to be the reference to pull the monsters off of this list
Ideally what would happen is that depending on the actions of my players I could take a pre-generated battle list of monsters and populate that list again so that I can track and list initiative using another set of equations and then sort them automatically to track order of attack. I've tried XLOOKUP and INDEX equations:
=XLOOKUP($G$2,'ENCOUNTER PROTO'!$B$6:$B$105,'ENCOUNTER PROTO'!$D$6:$D$105,"",0,1)
[This equation replicates the same monster listed on line 1 and doesn't change over to the next one]
and
=INDEX('ENCOUNTER PROTO'!$D$6:$D$105,SMALL(IF(Initiative!$G$2='ENCOUNTER PROTO'!$B$6:$B$105,ROW('ENCOUNTER PROTO'!$D$6:$D$105)-5,""),ROW()-4))
[This one returns the monster listed on line 1 then an error message of #NUM! on all subsequent lines]



=TAKE(XLOOKUP($G$2,'ENCOUNTER PROTO'!$B$6:$B$105,'ENCOUNTER PROTO'!$D$6:$D$105,"",0,1):$D$105,10)=TAKE(XLOOKUP($G$2,'ENCOUNTER PROTO'!$B$6:$B$105,'ENCOUNTER PROTO'!$D$6:$D$105,"",0,1):'ENCOUNTER PROTO'!$D$105,10). Similarly, you could return multiple (three) consecutive columns with, e.g.,=IFNA(TAKE(XLOOKUP($G$2,'ENCOUNTER PROTO'!$B$6:$B$105,'ENCOUNTER PROTO'!$D$6:$F$105):'ENCOUNTER PROTO'!$F$105,10),"").