Hi
I am looking for some solution where you can input two variables to be found at some other sheet and if found one or more values to the right of these look up values should be retrieved.
For ex if I have the names:
Mark Spencer 79000
Mark Spencer 79100
Mark Spencer 79200
and on another sheet (called sheet2) I have:
Mark Spencer 79000 cash
Mark Spencer 79100 settling
Mark Spencer 79200 allowance
....
and a lot more of values...so in total 200 rows have data in sheet 2 with three columns as shown above (ie 1st column: name, 2nd column:departmentid, 3rd column of holding)
and I would like to use I function that would look something like this:
=function_name('Mark Spencer';'79000';lookuparea;return value from the column to the right of my two lookup values on the same row as these look up values)
so for Mark Spencer 79000 it will return value: cash.
If possible I would also like to be able to determine from how many cells to the right of the look up values that should be retrieved. For ex. if there would be more than 3 columns on sheet2 I would like to be able to tell the function to retrieve both the first value AND the second value to the right of the lookup values (ie in this case the values in column 3 and 4 on the row where the function gets a match).
All ideas and possible solutions are highly appreciated.