Intersect function

Sucht die Werte, die in beiden Listen oder Tabellen enthalten sind


Description

The Intersect function compares two lists or tables. The result contains the values contained in both lists or tables.

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.


Syntax

Intersect (list1, list2)

Compares two lists or the first two columns of a table.

Intersect (table1, table2, column)

Compares the specified columns of both tables.

Intersect (table1, table2, column1, column2)

Compares column 1 of the first table to column 2 of the second table.

Intersect (table1, table1, column1, column2, "asc")

Compare column 1 with column 2 of the same table and arrange the result as an ascending list.


Example

Intersect([3,6,4,8,6],[2,7,6,5,3])= 3 6


Option Asc and Dsc

The option asc sorts the result in ascending order.

Intersect (list1, list2, "asc")

The option dsc sorts the result in descending order.

Intersect (table1, table2, column, "dsc")