> For the complete documentation index, see [llms.txt](https://manuals.i-reporter.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manuals.i-reporter.jp/create-a-form/prepare-the-formexcelfile/excelfunctions/example.md).

# Excel関数使用例\_VLOOKUP関数

EXCEL関数の使用例を、代表的な関数であるVLOOKUP関数を用いて具体的に説明します。

## **VLOOKUP関数について**

指定した範囲内のセルに記述された値のうち、範囲内の1列目（一番左端の列）を特定の値で検索し、その結果、同じ行にある別の値を返す関数です。\
EXCEL上でセルを用いて作成した表に対して、特定の値で表を検索し、その結果に応じた表中の値を返すという使い方ができます。

【VLOOKUP関数の使用例】

<div align="left"><figure><img src="/files/Hga95qgADELCVvvwbxoB" alt=""><figcaption></figcaption></figure></div>

### **EXCEL上にVLOOKUP関数を記述**

ConMas i-ReporterへVLOOKUP関数を取り込むために、まずはEXCELファイル上で、VLOOKUP関数の記述を行います。

<div align="left"><figure><img src="/files/CBQ0AUHkZ5CDbVIYhMJt" alt="" width="563"><figcaption></figcaption></figure></div>

**VLOOKUP関数の書式**

{% hint style="success" %}
\=VLOOKUP(検索値, 範囲, 列番号, 検索方法)
{% endhint %}

* 検索値 = 指定範囲内の一番左端の列にて検索を行う値を指定します。
* 範囲 = 検索を行う範囲を指定します。(表となる範囲を指定します)
* 列番号 = 検索の結果として表示したい値の列番号（範囲内の何列目か）を指定します。
* 検索方法 = TRUEの場合は近似値検索、FALSEの場合は完全一致検索を行います。 \
  　　　　　（これは省略が可能です。省略するとTRUE扱いとなります。）

### **範囲の指定について**

ConMas i-Reporterでは、EXCEL取込み機能に関して次のような仕様制限があります。

* クラスター設定していないセルデータは取込みの対象としない。
* 印刷範囲設定の範囲外となるセルデータは取込みの対象としない。

しかし、VLOOKUP関数など一部関数の引数部分に限り、例外となります。\
VLOOKUP関数の第二引数の範囲指定（表となる範囲の指定）にあたるセルに関しては、クラスター設定されていなくても、印刷範囲設定外であっても、また、別シート上にあっても、これらの値を取り込む事ができます。

<div align="left"><figure><img src="/files/yYSihP6LqWbo8gOR48Mf" alt="" width="491"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/YHsalOlyHcBlTBzjFSVE" alt="" width="527"><figcaption></figcaption></figure></div>

{% hint style="warning" %}
表となる範囲のセルが非表示設定されている場合や、表のあるシートが非表示設定されている場合は、セルデータの取込み対象外となります。
{% endhint %}

### **VLOOKUP関数を記述したセルを計算式クラスターに設定**

VLOOKUP関数を記述したセルを選択した状態で、右クリックメニューから「i-Reporter種別選択」を実行し、「クラスター種別選択」で「計算式」を設定します。\
検索値に、固定値ではなくセルを指定した場合、該当セルに対しても必要に応じたクラスター種別を同様に設定します。

<div align="left"><figure><img src="/files/OkrEmmIQHdJL0PbfgOC4" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/EDF0fE0YLxBnpACzlL5f" alt="" width="391"><figcaption></figcaption></figure>

### **EXCELファイルをConMas Designerへ取り込む**

設定を行ったEXCELファイルを保存し、ConMas Designerへの取込みを行います。

<div align="left"><figure><img src="/files/agK9DKIsGETBaTxmPPvu" alt=""><figcaption></figcaption></figure></div>

以上の手順にて、タブレット上でVLOOKUP関数を用いた帳票定義を扱うことができます。


---

# 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://manuals.i-reporter.jp/create-a-form/prepare-the-formexcelfile/excelfunctions/example.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.
