Dear Experts,
i have an issue with an User Defined Function. I coded a function that works like an VLOOKUP, but can handle more than one criteria.
My Worksheet contains some defined tables, my function searches them for 2-3 criteria and gives me a result (other column, same row).
I call the function this way: =mysearchfunction(ResultColumn, criteria1, criteria1column, criteria2, criteria2column…).
criteria1, criteria2 etc. are Strings, the columns-parameters are Ranges.
My Problem:
Everytime I filter something, ALL cells which contain =mysearchfunction are being recalculated.
My Workbook contains about 200 Columns and 4000 rows, so the calculation takes too much time.
Is there a way to prevent Excel from recalculating all these cells?
They are just filtered, the values don’t change and my function is independent from filtered values (filtered rows are searched, too – that’s why I wrote an own function instead of using vlookup or index…).
For example: Is there a way to modify the filter functions from excel, so that not all cells are being flagged as “dirty / recalculation needed”?
Sorry for my English and thanks in advance for your help :-)
Kind regards!
Bookmarks