Во вложении xlsx файл. Написать робота, который найдет в нем дублирующие строки, удалит одну из них, добавит строку «Итого» и запишет в ней сумму по оставшимся строкам

нужно решить эту задачу

Hi

I don’t see any file attached and also include your expected output

so it will easy to understand the scenario

Regards


вот такой эксель

пока не могу прикрепить файл я новичек

try below steps

  1. Use read Range workbook activity
  2. Use remove duplicate rows activity
  3. Use Assign activity to sum the values
    Create a variable Total of type string
dt1.AsEnumerable().Sum(Function(s) Cdbl(s("ColumnName").Tostring())).ToString

instead of columnName give your column name as per screen shot like “Cymma”

  1. Use Add data row to add line with total value
{"","","Total",Total}
  1. Use write range to write the result data to excel

Refer to above screen shot to get some clarity

also find the xaml file but you have change accordingly

JoinDataTables.xaml (28.0 KB)

Regards

а есть видео? я так вспе равно не понял тонкости?


Assign: Column ‘Efficiency’ does not belong to table DataTable.

Yes it was for my sheet you can not directly use the flow as it is make changes as per my previous post

Use below one

dt1.AsEnumerable().Sum(Function(s) Cdbl(s("Cymma").Tostring())).ToString

Check again is it “Cymma”

for add datarow activity replace as per below

{"","","Total",Total}

Regards

Здравствуйте. Вроде получилось исправить все ошибки. Как теперь посмотреть результат?

Выполнение робот завершено in: 00:00:01. Вот что в выводе ошибок нету и исходный файл не изменился

can you check their should be one more sheet added to you initial file named “SumD”

in that sheet you can find the results

Regards

спасибо вам огромное, удалось с вашей помошьюрешить проблемму

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.