> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/office-365/activities/excel/vlookup-range.md).

# VLookup Range

This activity retrieves a value in a user-specified range using the Microsoft Graph [Use workbook functions](https://docs.microsoft.com/en-us/graph/excel-use-functions) API.

### Input

* **Connection Id:** [`GraphServiceClient Variable`](/getting-started/rpa-studio/variables.md#graphserviceclient) <mark style="color:red;">`Required`</mark>\
  Specifies the office 365 connection id.
* **Column Index:** [`Object Argument`](/getting-started/rpa-studio/arguments.md#string) <mark style="color:red;">`Required`</mark>\
  Specifies the column index in the specified range that contains the value to be returned.
* **Exact Match:**\
  Specifies whether to retrieve exact or approximate matches. If set to **true** it returns an approximate match. By default, the value is set to **true**.
* **Range:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string) <mark style="color:red;">`Required`</mark>\
  Specifies the range to search for the given lookup value. If the property is left blank, the first column of the specified sheet will be searched. Input the cell range in A1-style notation like "A1:A5"

{% hint style="info" %}
When specifying the range for the activity, the lookup value should always be in the first column of the range for the activity to work. The activity works using the [VLOOKUP Excel function](https://support.office.com/article/VLOOKUP-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1)
{% endhint %}

* **Sheet Name:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)  <mark style="color:red;">`Required`</mark>\
  Specifies the sheet name in which the lookup value is to be searched.
* **Workbook:** [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)  <mark style="color:red;">`Required`</mark>\
  Specifies the [DriveItem ](https://docs.microsoft.com/en-us/graph/api/resources/driveitem?view=graph-rest-1.0)of the Excel workbook in which the lookup value is to be searched. We can also specify the output variable of the [Find Files And Folders](/integrations/office-365/activities/files/find-files-and-folders.md) activity (which is **First** or **Results**) directly as input in this property or use the output variable of the [Create Workbook](/integrations/office-365/activities/excel/create-workbook.md) activity (**Workbook**). If we are using the **Results** property of the **Find Files And Folders** activity then we can directly specify the element in the array.\
  For example : Results\[1].
* **Value to Lookup:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)  <mark style="color:red;">`Required`</mark>\
  Specifies the value to look for in the specified range.

### Output

**Result:** [`String Variable`](/getting-started/rpa-studio/variables/user-defined-variables-1.md#string)\
Specifies the value to look for in the specified range.
