How to know whether the excel sheet contains duplicate values by column name

Continuing the discussion from How to get first and last row value of excel and append the same to new sheet:

@mahadev_biradar

Can you please explain what you need…as the discussion is about something else and this heading speaks somethign else

Cheers