Hi to all,
I am dealing with a use case that requires the identification of an element on an excel sheet, and the search for the same on another excel sheet.
I have complications, as the position is variable.
The trigger file contains a cell with this type of daa:
The item I need to take is the highlighted number: 00737432.
I need to figure out if it is present in another excel sheet that contains a string with another format:
03000/01000/8200/00737432/3015/2018 000000505050
To complicate the work, it must be considered that this data, in this second file, is not always in the same position.
In the example above, the number 00737432 is after the third /, but in other rows of the excel sheet the number is after the second.
I would need help both to collect the data and to search for it.
On the source file, I know that this data is related to the surety number, and is found in the string:
_Number fidejussione : 01383-8200- 00737432 _Date fid : 20180926
and before the ā_dateā
I donāt know how to search for this element, in a string with a variable position.
03000/01000/8200/00737432/3015/2018 000000505050
Iām not entirely sure if I understood your question correctly but if you can get the String from file1 that you need to search from file2, you just need to use Regular Expressions in order to test a String against it regardless of itās position.
The steps would probably be something like this:
Get String from file1 that you need to use to search in file2
wera
While going thru (iterating) values in file2, you can use āIs Matchā activity to test each string if it maches what youāre looking for.
Yeah with the same approach as suggested by @Jeroen_van_Loon, just after splitting the string with ā/ā and added to the array, just use the resultArray.Contains(āYourStringā).
Ok ā¦ I take some time to understand the instructions and do some tests.
Iām not very experienced in programming.
I get along with simple automation projects, but when I have to use manipulated strings, Iām weak.
To get a general picture of the work, it is a question of verifying whether the payments notified by the bank are correct.
The bank provides me with an xlsx or csv with one format,
but the comparison table has conditions written in a different format.