Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

conditional remove duplicates

$
0
0

I have a list where i want to remove the duplicate where "Date of Termination (Work)" column is the latest or null.

sample data

Id No   Name    Surname Date of Employment (Work)   Date of Termination (Work)
12405   xxxx    yyy     10/26/2018                  2/6/2019
33418   mmm     nnnn    1/1/2018                    7/30/2018
33418   mmm     nnnn    1/13/2017                   12/31/2017
33616   rrrr    sssss   7/13/2018                   11/19/2018
33616   rrrr    sssss   7/13/2018                   null
48224   ttttt   kkkk    7/15/2018                   4/14/2019

the result should be

Id No   Name    Surname Date of Employment (Work)   Date of Termination (Work)
12405   xxxx    yyy     10/26/2018                  2/6/2019
33418   mmm     nnnn    1/1/2018                    7/30/2018
33616   rrrr    sssss   7/13/2018   
48224   ttttt   kkkk    7/15/2018                   4/14/2019

Viewing all articles
Browse latest Browse all 88854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>