Looking at the headers below I want to build a look up formula that will result in the latest (most recent date in list) transaction date (A) for a specific transaction type (B) for the MedID (D) for Station (E) and return the associated information in the desired results format listed below the original format.<o></o>
[TABLE="class: MsoNormalTable, width: 510"]
<TBODY>[TR]
[TD="width: 136, bgcolor: transparent"][/TD]
[TD="width: 136, bgcolor: transparent"][/TD]
[TD="width: 136, bgcolor: transparent"][/TD]
[TD="width: 136, bgcolor: transparent"][/TD]
[TD="width: 136, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 136"]TransactionDate<o></o>
[/TD]
[TD="width: 136"]Transaction<o></o>
[/TD]
[TD="width: 136"]MedDescription<o></o>
[/TD]
[TD="width: 136"]MedID<o></o>
[/TD]
[TD="width: 136"]Station<o></o>
[/TD]
[/TR]
</TBODY>[/TABLE]
<o> </o>
Desired results format<o></o>
[TABLE="class: MsoNormalTable, width: 280"]
<TBODY>[TR]
[TD="width: 61, bgcolor: transparent"][/TD]
[TD="width: 61, bgcolor: transparent"][/TD]
[TD="width: 99, bgcolor: transparent"][/TD]
[TD="width: 73, bgcolor: transparent"][/TD]
[TD="width: 79, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 61"]MedID<o></o>
[/TD]
[TD="width: 61"] Station<o></o>
[/TD]
[TD="width: 99"]TransDate Withdrawn<o></o>
[/TD]
[TD="width: 73"]TransDate Loaded<o></o>
[/TD]
[TD="width: 79"]Trans Date Unloaded<o></o>
[/TD]
[/TR]
</TBODY>[/TABLE]
<o> </o>
There are 3 transaction types. Loaded, Unloaded and Withdrawn. What I really need to know looking at over 60,000 lines of data: The date of most recent withrawn for a MedID, the most recent Loaded transaction if there is one and finally the most recent unloaded date is there is one line.<o></o>
Any help, suggestions will be appreciated. Thanks<o></o>
[TABLE="class: MsoNormalTable, width: 510"]
<TBODY>[TR]
[TD="width: 136, bgcolor: transparent"]
A<o></o>
[TD="width: 136, bgcolor: transparent"]
B<o></o>
[TD="width: 136, bgcolor: transparent"]
C<o></o>
[TD="width: 136, bgcolor: transparent"]
D<o></o>
[TD="width: 136, bgcolor: transparent"]
E<o></o>
[/TR]
[TR]
[TD="width: 136"]TransactionDate<o></o>
[/TD]
[TD="width: 136"]Transaction<o></o>
[/TD]
[TD="width: 136"]MedDescription<o></o>
[/TD]
[TD="width: 136"]MedID<o></o>
[/TD]
[TD="width: 136"]Station<o></o>
[/TD]
[/TR]
</TBODY>[/TABLE]
<o> </o>
Desired results format<o></o>
[TABLE="class: MsoNormalTable, width: 280"]
<TBODY>[TR]
[TD="width: 61, bgcolor: transparent"]
A<o></o>
[TD="width: 61, bgcolor: transparent"]
B<o></o>
[TD="width: 99, bgcolor: transparent"]
C<o></o>
[TD="width: 73, bgcolor: transparent"]
D<o></o>
[TD="width: 79, bgcolor: transparent"]
E<o></o>
[/TR]
[TR]
[TD="width: 61"]MedID<o></o>
[/TD]
[TD="width: 61"] Station<o></o>
[/TD]
[TD="width: 99"]TransDate Withdrawn<o></o>
[/TD]
[TD="width: 73"]TransDate Loaded<o></o>
[/TD]
[TD="width: 79"]Trans Date Unloaded<o></o>
[/TD]
[/TR]
</TBODY>[/TABLE]
<o> </o>
There are 3 transaction types. Loaded, Unloaded and Withdrawn. What I really need to know looking at over 60,000 lines of data: The date of most recent withrawn for a MedID, the most recent Loaded transaction if there is one and finally the most recent unloaded date is there is one line.<o></o>
Any help, suggestions will be appreciated. Thanks<o></o>