0

Can I pass a named range in to function as a filter?

I have a function that currently returns the correct value as a sum of hours worked for all clients. I am trying to modify it to return all hours worked for all but a few clients. I can hard code in the client codes to filter on, but I would like to be able to read the values to filter on from a named range in order to allow the end user to add more clients to filter on.

Using a named range of 'FilterValues' that encompasses multiple cells each containing a single client code i tried the following but it did not work:

=NL("Filter","WorkOrdersDefaultCustomer","WorkOrderKey","ClientCode",FilterValue,"Schema=",Options!D15)
I can create a single cell on the options page containing ClientCode1 &"|" & ClientCode2 & "|" & ClientCode3 …. and then reference that in the formula, but I would prefer to have 2 columns, one with client name and one with client code if that is possible.

1 comment

Please sign in to leave a comment.