Hi Team,
I have an excel in which i need to check that row(1) values should not be equal to values present in the columns of Row(2) inshort i need to check that if there are any duplicate values in the excel sheet then BOT should color the Column"k" i.e. comments column with Purple.
I have applied below logic to check Duplicates but it doesn’t seems to be working.
row(“USER EMAIL (IF APPLICABLE)”).ToString.ToUpper.Equals(inputListDT.Rows(0)(“USER EMAIL (IF APPLICABLE)”)) and row(“APPROVER EMAIL”).ToString.ToUpper.Equals(inputListDT.Rows(0)(“APPROVER EMAIL”)) and row(“USER NT LOGIN”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“USER NT LOGIN”)) and row(“USER FULL NAME”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“USER FULL NAME”)) and row(“APPROVER NT LOGIN”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“APPROVER NT LOGIN”)) and row(“APPROVER FULL NAME”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“APPROVER FULL NAME”))
then
writecell “Duplicate”
cell value: “k”+counter.tostring
Set Range Color “system.Drawing.Purple”
Hi,
Please find attached input file and in this file i need to check there should not be any duplicate rows…we need not to consider RES1,RES2,RES3 column values…
if there are any duplicate rows then in “k” column BOT has to write
“Duplicate” for those particular rows and color it Purple just like it has done “Yellow” for “Blank”.
please check and support.
Hi,
i have attached excel sheet and logic that i have used to check duplicates:
row(“USER EMAIL (IF APPLICABLE)”).ToString.ToUpper.Equals(inputListDT.Rows(0)(“USER EMAIL (IF APPLICABLE)”)) and row(“APPROVER EMAIL”).ToString.ToUpper.Equals(inputListDT.Rows(0)(“APPROVER EMAIL”)) and row(“USER NT LOGIN”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“USER NT LOGIN”)) and row(“USER FULL NAME”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“USER FULL NAME”)) and row(“APPROVER NT LOGIN”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“APPROVER NT LOGIN”)) and row(“APPROVER FULL NAME”).ToString.ToUpper.Trim.Equals(inputListDT.Rows(0)(“APPROVER FULL NAME”))