I am helping a friend with a work task he's been given and can't figure out the last part. We are given a matrix with a list of workers / users in the following layout:
Location | First Name | Last Name | Property 1 | Property 2 | Property 3 | .. | Property N
Frankfurt | Adam | Schmidt | X | | X | .. | X,
i.e. the properties are in boolean form (X to indicate 'Yes', or empty to indicate 'No').
The task is to search all users based on Location + 1 property that we are able to select from the N properties, i.e. we have a drop-down menu somewhere with all properties 1,2,..,N where we can select exactly 1 of the properties.
The output should be the format: Location | First Name | Last Name.
So, my idea was to replace the standard IF(("array for criteria 1"= "criteria 1") * ("array for criteria 2" = "yes"), ...) with the ADDRESS of the property we select, which we then transformed from text value into cell reference using the INDIRECT function.
To give an example, if we select property 1 (located in column D) in the drop-down menu, the ADDRESS function will return $D$1 as the starting field, and $D$100 as the ending field. These fields are then used inside an INDIRECT function inside the main (long) search function.
I've seen from other posts on the internet that it is possible to use SUM(INDIRECT(cell with starting cell defined&":"&cell with ending cell defined)), so I tried something similar in my function, but it doesn't seem to work.
Here is a picture of the formula & layout of the excel file.