> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/smartsheet/formulas-and-functions/reference-children-parents-ancestors-hierarchy-functions.md).

# 階層関数で CHILDREN、PARENT、ANCESTORS を参照する

階層関数を使用すると、シート内のインデント レベルに基づいてセルを他の関数に含めることができます。

### プラン <a href="#id-30j0zll" id="id-30j0zll"></a>

* Smartsheet
* Pro
* Business
* Enterprise

プラン タイプと含まれる機能の詳細については、 [「Smartsheetプラン」](https://www.smartsheet.com/pricing)ページを参照してください。

### 許可 <a href="#id-1fob9te" id="id-1fob9te"></a>

シートの所有者であるか、管理者共有権限を持つユーザーは、シート上で数式を作成および編集できます。 編集者の共有権限を持つユーザーは、シート上の[ロックされていないセル](https://help.smartsheet.com/articles/522077)で数式を作成および編集することもできます。

この機能が[Smartsheet Regionals](https://help.smartsheet.com/regions-capability-differences)または[Smartsheet Govに含まれているかどうかを確認してください](https://help.smartsheet.com/articles/2480681)。

Smartsheetの階層を使用してセルのグループをインデントまたはアウトデントし、データ グループ間の関係をより適切に示すことができます。 たとえば、新しい子行が親行に追加された場合でも、親の下にあるすべてのインデントされた子セルを自動的に参照するために、別の関数内に階層関数を配置できます。 たとえば、次の式を使用して、特定の列のすべての子の値を合計することができます。

\=SUM(子供())

階層を操作できる関数の使用方法の詳細については、 Smartsheet関数リファレンスの以下を参照してください。

* [CHILDREN 関数](https://help.smartsheet.com/function/children)親の下にあるすべての子セルを参照します。
* [PARENT 関数](https://help.smartsheet.com/function/parent)子セルの直接の親セルを参照します。
* [ANCESTORS 関数](https://help.smartsheet.com/function/ancestors)すべての親セルを子セルに参照します。

注記

階層関数はクロスシート数式ではサポートされていません。 クロスシート式で CHILDREN、PARENT、および ANCESTORS 関数を使用しようとすると、式を含むセルで #UNSUPPORTED CROSS-SHEET FORMULA エラーが発生します。 [数式エラー メッセージ](https://help.smartsheet.com/articles/2476176)と[他のシートからのデータの参照](https://help.smartsheet.com/articles/2476606)について詳しくは、こちらをご覧ください。

**まだ助けが必要ですか?**

[数式ハンドブック テンプレート](https://app.smartsheet.com/b/publish?EQBCT=32f8257f5d1948bfa948da170231a0c5)を使用すると、さらに多くのサポート リソースを見つけたり、リアルタイムで操作を練習できるすべての関数の用語集や、一般的に使用される高度な数式の例を含む 100 以上の数式を表示したりできます。

Smartsheetオンライン コミュニティで、他のSmartsheetユーザーがこの関数をどのように使用しているかの例を見つけたり、特定の使用例について質問したりできます。

[コミュニティに質問する](https://community.smartsheet.com/categories/formulas-and-functions?source=functionart)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manual.dxable.com/smartsheet/formulas-and-functions/reference-children-parents-ancestors-hierarchy-functions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
