简体   繁体   English

UIPATH - 连接数组中的两个 excel 单元

[英]UIPATH - Concatenate two excel cells in an array

What's the best way to concatenate two cells from the same Excel file in an Array using only UIPATH.仅使用 UIPATH 在数组中连接来自同一 Excel 文件的两个单元格的最佳方法是什么。

I currently have a first array filled with cities names and a second one filled with postalCode.我目前有一个填充城市名称的第一个数组和一个填充邮政编码的第二个数组。 Both come from the same Excel table with 2 column [city] and [PostalCode].两者都来自同一个 Excel 表,其中包含 2 列 [city] 和 [PostalCode]。 Now I'm looking for made a third array with (postal code + " - " + city) using only UIPATH现在我正在寻找仅使用 UIPATH 的 (postal code + " - " + city) 制作的第三个数组

May I have some help?我可以帮忙吗?

I don't understand well why you couldn't read the cells as a data table and filter the table.我不太明白为什么您不能将单元格作为数据表读取并过滤表。

But I assumed that the arrays have the same length, simply, you could create the third array empty with the same length as the others.但我假设 arrays 具有相同的长度,简单地说,您可以创建与其他长度相同的第三个空数组。 Then into a for each loop assign the value of the first and second array to the third.然后进入一个 for each 循环,将第一个和第二个数组的值分配给第三个。

Something like that (index is the "Index" propriety of the "For each" activity):类似的东西(索引是“For each”活动的“索引”属性): 在此处输入图像描述 在此处输入图像描述

Regards, Gio问候,吉奥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM