I have a dynamic checklist that changes the questions displayed based on multiple criteria. It works, but I'm hoping there is a more efficient way, especially with increased criteria.
Example:
Let's say there are 2 criteria that can be either "Y" or "N". The parameters on Checklist A are set such that only the questions that have Criteria1=Y and Criteria2=N should be shown.
Question1 is [Y,N] and should be shown.
Question2 is not [Y,N] and should NOT be shown.
Question3 is not [Y,N] and should NOT be shown.
Question4 is [Y,N] and should be shown.
Therefore, Checklist A shows:
Question1
Question4
One following the other, like Question2 and Question3 didn't exist.
I currently have it working using helper columns counting, (the parameter matches), for each possibility (Y/Y, Y/N, N/Y, N/N). Then doing a lookup for each row. (In the example above, for the second question in Checklist A, it does a lookup on the "Y/N" column based on the '2' and pulls Question4 for 2nd 'displayed' question).
It works well, instantly 'manufacturing'/changing 200 row checklists based on the parameters. However, I'm hoping there is a better way than creating columns to count all possible combinations.
Is there some formula combination to determine that the second combination of Y/N is row 4? It's almost like => What row is it that the COUNTIFS(for specified parameters) = 2?
Maybe a rows/countifs combination? Some array formula/SUMPRODUCT?