i am downaloding the data from mail which contais job details and ststus
on day 1 i got a mail with job id and job status a s below
===> Job Posting halted Job ID: JP000151 status= haulted
on day 2 i got mail with same job id but status as reopened
===>Job Posting reopened Job ID: JP000151 status= reopened
So now if job ID already exists in excel thenUpdate the Status with latest date data(reopened)
if the job id is totally new add the new row to excel with job id and status
i am getting data in mail
out of that i am splitting jobId and staus and adding row in excel
my problems is, If i get another mail with same jobID and different status ,i want to update the latest status of the of same JobID without creating duplicate rows in excel
example
=======>ist mail=======>JOB456 openstatus ========> enter row in excel with ID and status
=======>2nd mail======>JOB456 Close status ========> update already created row status as closed