
Originally Posted by
JB
CHOOSE will require there be a value in each "slot" for the array of possible answers. If you have no "3" answer, then you'll need to include the field, but leave it empty.
The other option is of course to use a MATCH call to determine index_num in the CHOOSE, ie along the lines of:
in the above you therefore have only "x" number of outputs in the CHOOSE where "x" is determined by the number of sheets in the MATCH inline array.

Originally Posted by
Zheno
Could there be a way to use some kind of database, Access? SQL?
Certainly but that's a bigger project (esp. if you've not used either Access or SQLServer before) - and as you say this is an Excel Forum so we could help regards retrieving the info but not regards creating your db - they would be questions best suited to an Access / SQLServer forum
(there is an Access forum here).
What I would say from an XL standpoint is that you could perhaps think of utilising a Pivot Table.
If you have one sheet in your file that stores the data as you outline in your prior post (re: DB table) then you can feed that data into a PT and do lots of analysis very quickly and very neatly with little or no Excel formula knowledge required.
If you want further assistance on the DB / PT matters please setup a new thread (in appropriate forum) - as a rule we try to keep threads dedicated to the "original" question (ie the VLOOKUP / CHOOSE)
Bookmarks