I have a database program that extracts breeding data for animals. However, the data is ugly to say the least, and I need to sort my animals by name based on their latest breed date. This data will be continually updated from the database program, so I need something with relatively simple cut and paste procedures to apply to new CSV export sheets.
The breed data is actually spit out on two seperate files.
Assuming Today's date is around 7/13/06, what I need to produce is a working list of pregnant Dam's (only one instance of each Dam) in alphabetical order, based on their Due Date. As can be seen, some animals have been bred previously to the same studs, and their due dates have come and gone. So I am looking for the most current Due Date - regardless if it has passed or not. It is possible that some females are over their due date - which poses a bit of problem (from a coding standpoint).
In short I am looking for the following:
As stated previously, there are two files that are produced, the second file contains the testing info, and methods used to verify pregnancy. That will be the second part of the equation, but a little heads up, there are multiple procedures on the same date. The layout is almost identical with multiple rows of the same animal. But that will be addressed in part two.
I hope that is a clear enough explanation of what I am looking to do. I was getting close with Vlookup and Hlookup, and I recall seeing an example at one point of using the two functions together, making one a variable (array) of the other, but can't find the example.
I havetried a Pivot Table with little to no luck.
Thanks in advance for any help/suggestions.
The breed data is actually spit out on two seperate files.
Code:
Dam Name Registration Stud Name Bred Date Due Date
Gwen1 12345 Bob1 6/20/06 6/01/07
Gwen1 12345 Fred1 6/14/06
Gwen1 12345 Bob1 6/05/06
Linda25 67890 Bob1 6/21/06 6/2/07
Linda25 67890 Bill398 6/02/06
Linda891 90123 Bill398 8/25/05 8/13/06
Linda891 90123 Bill398 5/14/04 5/1/05
Assuming Today's date is around 7/13/06, what I need to produce is a working list of pregnant Dam's (only one instance of each Dam) in alphabetical order, based on their Due Date. As can be seen, some animals have been bred previously to the same studs, and their due dates have come and gone. So I am looking for the most current Due Date - regardless if it has passed or not. It is possible that some females are over their due date - which poses a bit of problem (from a coding standpoint).
In short I am looking for the following:
Code:
Dam Name Registration Stud Name Bred Date Due Date
Gwen1 12345 Bob1 6/20/06 6/01/07
Linda25 67890 Bob1 6/21/06 6/2/07
Linda891 90123 Bill398 8/25/05 8/13/06
As stated previously, there are two files that are produced, the second file contains the testing info, and methods used to verify pregnancy. That will be the second part of the equation, but a little heads up, there are multiple procedures on the same date. The layout is almost identical with multiple rows of the same animal. But that will be addressed in part two.
I hope that is a clear enough explanation of what I am looking to do. I was getting close with Vlookup and Hlookup, and I recall seeing an example at one point of using the two functions together, making one a variable (array) of the other, but can't find the example.
I havetried a Pivot Table with little to no luck.
Thanks in advance for any help/suggestions.