I have a list of rules in text form that perform various integrity check on data in a table. Here are just 2 of the currently 13 rules in the list (along with the hidden field that turn the field name into valid table cell refs):
The relevant columns/fields in the Trxns table for a record giving me fits are:
The check formula, in the [Edit_Code] column, uses INDIRECT to execute the rules on each row of table and return the text applicable on each row that fails a test. Assuming the above tests are on rows 2 & 3 the formula is:
I have narrowed it down to the highlighted condition as being the problem -- but no matter how it is set, it keeps resulting in "ok" when it should result in "Disp'd RJCD Sec ID". I have tried:
What am I missing? I think I have always made do by restructuring the formula to countif length of the field = 0 -- but in a table of 13 integrity checks -- all of which are expected to work in the same manner to make it easy to add and remove checks as things change.... I don't have the flexibility here to do that. Something OUGHT to WORK here!
Thanks for any help!
The relevant columns/fields in the Trxns table for a record giving me fits are:
The check formula, in the [Edit_Code] column, uses INDIRECT to execute the rules on each row of table and return the text applicable on each row that fails a test. Assuming the above tests are on rows 2 & 3 the formula is:
=IFS(COUNTIFS(INDIRECT($AV$2),$N$2,INDIRECT($AX$2),$P$2&$Q$2,INDIRECT($AZ$2),$S$2)=1,$K$2,
COUNTIFS(INDIRECT($AV$3),$N$3,INDIRECT($AX$3),$P$3&$Q$3,INDIRECT($AZ$3),$S$3)=1,$K$3,
TRUE,"ok")
I have narrowed it down to the highlighted condition as being the problem -- but no matter how it is set, it keeps resulting in "ok" when it should result in "Disp'd RJCD Sec ID". I have tried:
SecIDOvrd < "0"
SecIDOvrd = 0
SecIDOvrd = ""
What am I missing? I think I have always made do by restructuring the formula to countif length of the field = 0 -- but in a table of 13 integrity checks -- all of which are expected to work in the same manner to make it easy to add and remove checks as things change.... I don't have the flexibility here to do that. Something OUGHT to WORK here!
Thanks for any help!