Hi Team
I need support for comparing two rows in same data table
in two collumn first is invoice and second is Status.the issue is if one invoice number status is fail then for same invoice number in second row the status we need to make fail
please help to resolve
thanks in advance
in sr no 4 invoice no is 71 and status is failed
in sr no 5 invoice no is 71 and status is failed it should change to failed
same for sr no 6 invoice number is 74 and status is failed to
from sr no 7 to 11 status should change as failed
create a dictionary.
a) Then for each unique invoice, check if the table contains a row with that invoice where status = fail,
b) if a row is found, then add entry to dictionary where key = invoice, value = fail,
c) otherwise add entry where key = invoice, value = success
update datatable with new values from dictionary
write new dt to excel
result
(left = original excel, right = result excel)