0

Issue with "empty filters not allowed"

Hi all,

I am trying to create a report, that will show the sum, for each combination of Bus. Posting Group & Prod. Posting Group, for the active G/L accounts in a period (for reconciliation purposes). The way I have done this is by:

1. Through NL(Rows..) I extract all the G/L accounts with movement within the specied daterange. This works just fine.
2. NF(..) to get the wanted titles afterwards.

In my first column related to the issue, I have used this formula in I6 : "=NL("Rows";"G/L entry";"Bus. Posting Group";"Posting Date";datefilter;"G/L account no";H6;"Prod. Posting Group";"<>@@")"

datefilter = my set Date filter, and H6 = the NF function to get my account number. This part of the code works really well (any optimization is welcome).

Next though, in J6, I have used the following : "=NL("Rows";"G/L entry";"Prod. Posting Group";"Posting Date";datefilter;"G/L account no.";H6;"Bus. Posting Group";I6)"

This code works almost precisely how I want it to. The issue arises when we have done direct posting to the G/L account, and there aren't any Bus.- or Prod. Posting Groups applied to the account. Cell I6 will return blank (of course), which is ok. But the function in J6 will give #VAlUE, and the error message "Empty filters not allowed". G/L accounts where posting groups are applied, the code works perfectly.


Does anyone have a smart way of handling this? Usually I would simply use an IF function to test for empty cells, but the ROWS and COLUMN Functions don't work inside IF functions to my knowledge. Can i in the J(Fx) assistant 'test' for blank values instead?

I hope this makes sense. There are other factors in this report that are dependant on this issue - otherwise it works just fine.

/Kenneth

4 comments

Please sign in to leave a comment.