Duplicate and empty excel

duplicate record also find then how to empty excel record are read and send mail text message. excel record are empty but program empty run and not a error

one program two condition first duplicate record find then excel record are data empty how to possible