We can check if grouping the data will serve. Have a look here:
when grouping on Staff No we can identify the duplicates, when checking the group count. (You will also find a lot of examples for this on the forum via search)
the aggregations e.g. Summing up we can do with the LINQ Sum Operator:
[HowTo] LINQ (VB.Net) Learning Catalogue - Help / Something Else - UiPath Community Forum
feel free to share some sample data with us and we will help you based on this