> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/range-functions/intersection.md).

# INTERSECTION

#### Syntax

**INTERSECTION**(*range;* *intersectRange*)

* *range* - the range where elements should be removed - ***Value type**: any*
* *intersectRange* - the range defining which elements remain in range - ***Value type**: any*

The function returns a copy of *range*, where only these elements remain which are included in *intersectRange* as well. All other cells are empty.

**Examples**

<figure><img src="/files/J1ewVTdIsYCQKATplfpb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zAlgx8LW1ozqJEZDJznW" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5WmyNOw8G5CZtWlofTkZ" alt=""><figcaption></figcaption></figure>
