I'm a teacher and I've tried to make an Excel spreadhseet that can automatically pick out a specified number of random keywords and their corresponding definitions from a master list:
The number of keywords and definitions to be output are specified in cell B2
of the Vocab Quiz sheet:
Then the array formula in cell D3
spits out the ID's for the specified number of entries (e.g. 9 keywords). This array formula will update to automatically resize the number of entries depending on how many you request.
I then want to use an INDEX MATCH formula: (=INDEX('Vocab list'!B:B,MATCH('Vocab Quiz'!D3,'Vocab list'!A:A,0),SEQUENCE('Vocab Quiz'!$B$2))
) to lookup and match the ID against it's corresponding keyword from the master list, whilst dynamically adjusting to the size of the number of keywords requested.
INDEX MATCH formula:
The issue I'm having is that the array is continually using the lookup value for cell D3
, resulting in a #REF!
error, and what I really want is for the INDEX MATCH array formula to lookup the next row down for the length of the dynamic array (i.e. D4
, D5
,...D11
).
I know the array formula is constantly referring to cell D3
because that's where I've told it to look, but if I were to drag the formula down manually, using autofil it would change the 'D3' reference to the next row as there's no $
locking in in place. I was hoping that's what the array would also do, but evidently not.
What do I need to change to get the array to work as I would like it to?