Hello,
I have one excel of 2 columns.
Column A: Cust ID
Column B: Acc No
Now i want to apply COUNT IF for Column A. It will give value 1, 2 based on Duplicates if that value is greater than 1 then i want to write DUPLICATE FOUND before that element.
Then i want to apply COUNT IF for Column B. It will give value 1, 2 based on Duplicates if that value is greater than 1 then i want to write DUPLICATE FOUND before that element.
Use the “Read Range WorkBook” activity to read the Excel file and store it in a DataTable variabledtInput.
Create a new DataTable to store the results say dtResults. Add the necessary columns (“Cust ID”, “Acc No”, “Duplicate Found A”, “Duplicate Found B”).
Use an Assign activity to calculate the count of duplicates for Column A and Column B and add the “Duplicate Found” label:
Assign: dtInput.DefaultView.ToTable(True, "Cust ID", "Acc No", "Duplicate Found A", "Duplicate Found B")
Use a For Each Row activity to loop through the dtInput DataTable.
Inside the For Each Row loop, use the following activities to count duplicates for Column A and B and add the necessary information to the result DataTable:
Use an Assign activity to get the count of duplicates for Column A: