Thanks to both of you, however at the top of the question
there is an structure like
A IdMed C D E F G
2, 405, 8ABR2009AC, 20, 10, SI, 4/8/2009
2, 405, 8ABR2009AB, 10, 8, SI, 4/8/2009
2, 407, 8ABR2009AB, 10, 8, SI, 4/8/2009
2, 407, 8ABR2009AC, 20, 15, SI, 4/8/2009...