Finds the values that are only in the first lists or tables
The SetDiff function compares two lists or tables. The result is a list of values contained only in the first list or table.
In the case of tables, the number of the column to be searched is also specified.
The option asc arranges the result as ascending, dsc as a descending list.
SetDiff (list1, list2)
Compares two lists or the first two columns of a table.
SetDiff (table1, table2, column)
Compares the specified columns of both tables.
SetDiff (table1, table2, column1, column2)
Compares column 1 of the first table to column 2 of the second table.
SetDiff (table1, table1, column1, column2, "asc")
Compare column 1 with column 2 of the same table and arrange the result as an ascending list.
SetDiff([3,6,4,8,6], [2,7,6,5,3])= 4 8
The option asc sorts the result in ascending order.
SetDiff (list1, list2, "asc")
The option dsc sorts the result in descending order.
SetDiff (table1, table2, column, "dsc")