出力したExcelファイルから値を読み込みしたい

Excelのデータを取得したい列に記載された情報をそれぞれ変数に格納したいです。
その場合は繰り返しアクティビティを使用するかと思うのですが、繰り返し数は毎回変動するのでどのように設定したらよいでしょうか。
また、繰り返しアクティビティの「次のコレクション内の各要素」は何に設定したらよいでしょうか。

以下用件となります。
出力されたExcelファイルには、毎回出力されるデータの個数が異なります。
しかし、取得したいデータの列はわかっています。

想定フロー
・Excelファイルを使用アクティビティ

・繰り返し(コレクションの各要素)アクティビティ

・セルの値を読み込みアクティビティ

よろしくお願いいたします。

Hey @afna if i’m not wrong your are reading some excel file then save in the dt (datatable ) variable now you are doing the iteration to read all the values from the multiple column and store the columns data in multiple assign .

so you can use for each row activity inside the for each use assign activity on the required num of columns data you want - like 3,5
so inside the for each loop drag 1 assign activity
in the left hand side create the variable and in the right side use currentrow(“yourcolname”).tostring
that way you can store the datas

cheers

singh_sumitさん
お返事いただきましてありがとうございます。

言葉足らずですみません。
複数のExcelファイルからではなく、一つのExcelファイルから特定の列(Q列)の情報を変数で格納して、後続フローでQ列のそれぞれのセル(Q2,Q3…)の値を別々で入力したいのです。
また、追加となってしまい恐縮ですが、Q1のデータは取得してほしくないのものです。

よろしくお願いいたします。

Hey @afna is Q1 contains the column name that’s why you want to skip that right if this is true then in the read range there is a property name Add Headers kindly check that option so it will treat Q1 as an header and skip that in the loop. i don’t know you are working with classic or modern but in both case you found somthing like this.enable that.

cheers

一行目はヘッダーでしょうか?このようなケースは繰り返し(Excelの各行)アクティビティを使うと良いように思えます。

こんにちは、Excel1行目はヘッダでしょうか?回答がYESの場合、
Excel(設定.xlsx)1行目に、key,value,descriptionという列名を入れて2行目以降にKey名、keyの値、説明文を入れます。
そうすれば、最初に範囲を読み込みアクティビティで、Excel(設定.xlsx)の内容をデータテーブルdt_SettingsData2に取得したあと、Selectメソッドで
str_inputファイルパス=dt_SettingsData2.Select("key='Inputファイルパス'")(0)("value").ToString
を実行すれば、String変数str_inputファイルパスにExcel(設定.xlsx)のB列の値を取得できます。繰り返しを使うより簡単と思います。
複数の変数に初期値をまとめて設定したい場合、私はこのアルゴリズムを使っています。
ご参考まで。

ワークフロー


設定.xlsx