---
title: "Write Variable Value To Excel Column In Loop Step"
url: "https://docs.robotiq.ai/en/article/write-variable-value-to-excel-column-in-loop-step"
language: "en"
last_updated: "2025-12-24T15:06:37.123Z"
---

# Write Variable Value To Excel Column In Loop Step

This step puts a variable's value into a specific Excel cell while a loop runs. Use it when you need to update an Excel column with data from a variable, one row at a time.

## What You'll Need

-   An Excel file you've already opened using the [Open Excel File Step](https://docs.robotiq.ai/en/article/open-excel-file-step-and-close-excel-file-step).
-   An [Excel Rows Loop Step](https://docs.robotiq.ai/en/article/excel-rows-loop-step) set up in your process. This step must be placed inside the Excel Rows Loop Step.
-   A variable that holds the value you want to write.

## How to Use Write Variable Value To Excel Column In Loop Step

This step takes a variable's value and writes it to an Excel column for each row in your loop.

### Step 1: Add the Step to Your Process

1.  Drag the "Write Variable Value To Excel Column In Loop Step" into your process.
2.  Put it inside an "Excel Rows Loop Step".

### Step 2: Set Up the Step

1.  **Step name** (Optional): Give the step a custom name. This helps you find it in your process.
2.  **Source variable to be written** (Required): Pick the variable that has the value you want to put into Excel.
3.  **Destination column name for variable to be written** (Required): Type the letter of the Excel column (like "A" or "B") where you want the value to go. You can also use a variable that contains the column letter.

**Important:** The "Excel Rows Loop Step" automatically handles which row to write to.

## Parameter Details

**Step name** (Optional)

-   A custom name for the step in your process.
-   Example: `Write Order ID to Excel`
-   Use it to make your process easier to understand.

**Source variable to be written** (Required)

-   The name of a variable that already exists.
-   This variable holds the value the step will write to Excel.
-   Example: `myOrderID`
-   Use it to say which data you're moving to Excel.

**Destination column name for variable to be written** (Required)

-   The letter of the Excel column (like "C").
-   You can also use a variable that stores the column letter.
-   Example: `"B"` or `columnVariable`
-   Use it to say where in the Excel sheet the variable's value will be written.

**Additional comments**

The Excel row index is defined in the ‘Excel Rows Loop Step’. This step can be only used if ‘Excel Rows Loop Step’ is previously defined and is a child of the ‘Excel Rows Loop Step’.

## Related Articles

-   [Excel Rows Loop Step](https://docs.robotiq.ai/en/article/excel-rows-loop-step) - Learn how to go through Excel rows.
-   [Open Excel File Step and Close Excel File Step](https://docs.robotiq.ai/en/article/open-excel-file-step-and-close-excel-file-step) - How to connect to and disconnect from Excel files.
-   [Write Value To Excel File Step](https://docs.robotiq.ai/en/article/write-value-to-excel-file-step) - How to write one value to a specific Excel cell.

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/7eaa2c1f-678f-4365-a627-78017b54b0c3)

![](https://cdn-assets.productfruits.com/b009b862-9de8-40ff-9044-e8c0084d6737)
