How to keep only the LAST value of each pair in excel VBA? -
contract no price d/019/09 17.85 d/019/09 17.85 d/019/09 17.85 d/019/09 17.85 d/023/09 17.85 d/023/09 17.85 d/026/09 0 d/026/09 0 d/038/11 20.6 d/038/11 20.6 d/038/11 20.6
the above example data series ... , keep last occurence of each unique contract no. in above example, keep d/023/09 17.85, d/026/09 0 , d/038/11 20.6. there should 3 unique values. efficient way it?
further comment here way, doesn't need data sorted. see example of d/019/09
=if(countif($a2:$a$13,a2)>1,0,b2)
Comments
Post a Comment