gregmartjim
New Member
- Joined
- Jun 14, 2018
- Messages
- 9
Hello Mr Excel and everyone
I have a problem , i am trying to select some data from a set but in a very particular way.
the data i have is something like the data below, what id like to do is to delete the whole row if the number in the second column is repeated, but i want to keep the last repeated value and delete the other values above.
For example the first and second row have the same value in column 2 (the value is 1) i want to delete all the first row and just leave the second one. An other example, the rows 9 to 11 have the same value in column 2 (the value is 1 again) here i would like to delete row 9 & 10. Final example, the rows 3 and 4 have the same value (2) i would like to delete all row number 3 and keep row 4. I will really appreciate if someone could help me with this problem. Thanks for reading
[TABLE="width: 343"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.64[/TD]
[TD="align: right"]41.93[/TD]
[TD="align: right"]1274.895[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.66[/TD]
[TD="align: right"]41.12[/TD]
[TD="align: right"]1274.8375[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]40.68[/TD]
[TD="align: right"]1290.7075[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.93[/TD]
[TD="align: right"]41.88[/TD]
[TD="align: right"]1290.7075[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.11[/TD]
[TD="align: right"]44.38[/TD]
[TD="align: right"]1311.235[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.83[/TD]
[TD="align: right"]41.92[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.18[/TD]
[TD="align: right"]42.83[/TD]
[TD="align: right"]1331.245[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.58[/TD]
[TD="align: right"]43.26[/TD]
[TD="align: right"]1331.4175[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.57[/TD]
[TD="align: right"]54.07[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.57[/TD]
[TD="align: right"]55.14[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.68[/TD]
[TD="align: right"]56.19[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]53.8[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.56[/TD]
[TD="align: right"]53.36[/TD]
[TD="align: right"]1290.78[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.76[/TD]
[TD="align: right"]58.58[/TD]
[TD="align: right"]1310.94[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.64[/TD]
[TD="align: right"]56.7[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.75[/TD]
[TD="align: right"]49.14[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]46.67[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.48[/TD]
[TD="align: right"]52.05[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]51.57[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]50.41[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.7[/TD]
[TD="align: right"]50.84[/TD]
[TD="align: right"]1291.14[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.6[/TD]
[TD="align: right"]51.76[/TD]
[TD="align: right"]1291.14[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.69[/TD]
[TD="align: right"]54.79[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]55.45[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.83[/TD]
[TD="align: right"]51.36[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.05[/TD]
[TD="align: right"]52.73[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.47[/TD]
[TD="align: right"]39.46[/TD]
[TD="align: right"]1271.0425[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.41[/TD]
[TD="align: right"]39.52[/TD]
[TD="align: right"]1270.985[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.58[/TD]
[TD="align: right"]53.1[/TD]
[TD="align: right"]1290.995[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.6[/TD]
[TD="align: right"]52.65[/TD]
[TD="align: right"]1290.995[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.05[/TD]
[TD="align: right"]52.44[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]53.37[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.07[/TD]
[TD="align: right"]48.86[/TD]
[TD="align: right"]1331.015[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.1[/TD]
[TD="align: right"]47.46[/TD]
[TD="align: right"]1331.015[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.42[/TD]
[TD="align: right"]56.86[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.44[/TD]
[TD="align: right"]54.53[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.42[/TD]
[TD="align: right"]50.12[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.43[/TD]
[TD="align: right"]51.05[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.58[/TD]
[TD="align: right"]58.82[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.54[/TD]
[TD="align: right"]57.63[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.79[/TD]
[TD="align: right"]48.76[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.79[/TD]
[TD="align: right"]48.21[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
</tbody>[/TABLE]
I have a problem , i am trying to select some data from a set but in a very particular way.
the data i have is something like the data below, what id like to do is to delete the whole row if the number in the second column is repeated, but i want to keep the last repeated value and delete the other values above.
For example the first and second row have the same value in column 2 (the value is 1) i want to delete all the first row and just leave the second one. An other example, the rows 9 to 11 have the same value in column 2 (the value is 1 again) here i would like to delete row 9 & 10. Final example, the rows 3 and 4 have the same value (2) i would like to delete all row number 3 and keep row 4. I will really appreciate if someone could help me with this problem. Thanks for reading
[TABLE="width: 343"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.64[/TD]
[TD="align: right"]41.93[/TD]
[TD="align: right"]1274.895[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.66[/TD]
[TD="align: right"]41.12[/TD]
[TD="align: right"]1274.8375[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.97[/TD]
[TD="align: right"]40.68[/TD]
[TD="align: right"]1290.7075[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.93[/TD]
[TD="align: right"]41.88[/TD]
[TD="align: right"]1290.7075[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.11[/TD]
[TD="align: right"]44.38[/TD]
[TD="align: right"]1311.235[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.83[/TD]
[TD="align: right"]41.92[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.18[/TD]
[TD="align: right"]42.83[/TD]
[TD="align: right"]1331.245[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.58[/TD]
[TD="align: right"]43.26[/TD]
[TD="align: right"]1331.4175[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.57[/TD]
[TD="align: right"]54.07[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.57[/TD]
[TD="align: right"]55.14[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.68[/TD]
[TD="align: right"]56.19[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]53.8[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.56[/TD]
[TD="align: right"]53.36[/TD]
[TD="align: right"]1290.78[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.76[/TD]
[TD="align: right"]58.58[/TD]
[TD="align: right"]1310.94[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.64[/TD]
[TD="align: right"]56.7[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.75[/TD]
[TD="align: right"]49.14[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]46.67[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.48[/TD]
[TD="align: right"]52.05[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]51.57[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.52[/TD]
[TD="align: right"]50.41[/TD]
[TD="align: right"]1271.34[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.7[/TD]
[TD="align: right"]50.84[/TD]
[TD="align: right"]1291.14[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.6[/TD]
[TD="align: right"]51.76[/TD]
[TD="align: right"]1291.14[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.69[/TD]
[TD="align: right"]54.79[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.8[/TD]
[TD="align: right"]55.45[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.83[/TD]
[TD="align: right"]51.36[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.05[/TD]
[TD="align: right"]52.73[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.47[/TD]
[TD="align: right"]39.46[/TD]
[TD="align: right"]1271.0425[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.41[/TD]
[TD="align: right"]39.52[/TD]
[TD="align: right"]1270.985[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.58[/TD]
[TD="align: right"]53.1[/TD]
[TD="align: right"]1290.995[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.6[/TD]
[TD="align: right"]52.65[/TD]
[TD="align: right"]1290.995[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1.05[/TD]
[TD="align: right"]52.44[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.98[/TD]
[TD="align: right"]53.37[/TD]
[TD="align: right"]1311.12[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.07[/TD]
[TD="align: right"]48.86[/TD]
[TD="align: right"]1331.015[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1.1[/TD]
[TD="align: right"]47.46[/TD]
[TD="align: right"]1331.015[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.42[/TD]
[TD="align: right"]56.86[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0.44[/TD]
[TD="align: right"]54.53[/TD]
[TD="align: right"]1270.98[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.42[/TD]
[TD="align: right"]50.12[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0.43[/TD]
[TD="align: right"]51.05[/TD]
[TD="align: right"]1290.96[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.58[/TD]
[TD="align: right"]58.82[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0.54[/TD]
[TD="align: right"]57.63[/TD]
[TD="align: right"]1310.76[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.79[/TD]
[TD="align: right"]48.76[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]0.79[/TD]
[TD="align: right"]48.21[/TD]
[TD="align: right"]1331.1[/TD]
[/TR]
</tbody>[/TABLE]