Hello friends,
I have a problem in extrcting data from an Excel DataTable.
Here I attach my Excel file containing the DataTable. Scrapecliente.xlsx (7.6 KB)
I have to loop through all the rows.
If in a row I find a particular amount, for example the amount 104.60 in the column highlighted in grey,
, the Bot should extract the number at the beginning of the row containing 15 digits. (in this case 201890700292475)
Can anyone help me in resolving this issue?
I should finish it in a short time.
Thank you so much friends.
Camilla
Hi @CamiCat,
As i understand , I saw the excel sheet. If you don’t have the large amount rows. can format the excel by using split by whitespace. And load it as separate sheet or separate file. after that if you read into datatable it very easy to filter the record.
If not possible to format it. you have apply the split functionality each row.
May the array index should be 2 and you can compare.
But my best advice is to format the rows. It will improve the performance also.
May I Know how may rows will have the excel sheet?
Hi @CamiCat . it is invoke file. Delete it invoke the file assign variable like below. Again I Have attached the file
It has 2 xml files. Keep all the file in the same folder.
Yes, I’m getting the result.
I should insert an If condition to see wheter the TransValeu is present or not; the value must be equal to another value extracted from an Excel file.
If the TransValue is correct I should extract the Index of the row and find the Sno corresponding.
CAn you please help me again?
Thank you so much,
Camilla
Can I ask you another question?
How is it possible to clear all the data in the Excel file before inserting the information of the next transaction?
Thank you so much @balupad14.
Camilla
Thank you @balupad14.
Is this one the solution for the problem of deleting all the content of the Excel file?
Thank you so much for your kind and precious help,
Camilla.
@CamiCat
To clear spreadsheet I recommend using the Clear All, because Delete hotkey could leave some hidden formatting. For example, it sometimes will remember the last row of data even though you deleted it… so Append Range will see those empty rows has having something in them, if that makes sense.
to Clear all, it’s in the Ribbon by the key combination Alt,h,e,a TypeInto “[k(alt)]hea”
So I think that’s the best way, but Delete might work.