Hi,
I have data which has several rows of information on it as below.
I need to find a way to find the latest unit cost for each item (by date). Eg if there are 5 different dates for the same part number to look at the one with the most recent date for that part and then select that cost as the most recent.
What is the best formula to use to get this.
[TABLE="width: 464"]
<tbody>[TR]
[TD]Posting Date[/TD]
[TD]Item No.[/TD]
[TD]Item Description[/TD]
[TD]Unit Cost[/TD]
[/TR]
[TR]
[TD="align: right"]4/07/2016[/TD]
[TD="align: right"]29949[/TD]
[TD]FILLER / BREARTHER - HYDRAULIC TANK[/TD]
[TD="align: right"]64.75[/TD]
[/TR]
[TR]
[TD="align: right"]17/01/2014[/TD]
[TD="align: right"]33162[/TD]
[TD]PUMP - Grease[/TD]
[TD="align: right"]2,455.00[/TD]
[/TR]
[TR]
[TD="align: right"]8/10/2014[/TD]
[TD="align: right"]33162[/TD]
[TD]PUMP - Grease[/TD]
[TD="align: right"]2,572.50[/TD]
[/TR]
[TR]
[TD="align: right"]9/05/2014[/TD]
[TD="align: right"]36360[/TD]
[TD]FILTER - RETURN / FILL[/TD]
[TD="align: right"]660[/TD]
[/TR]
[TR]
[TD="align: right"]11/07/2014[/TD]
[TD="align: right"]36362[/TD]
[TD]FILTER - RETURN[/TD]
[TD="align: right"]596.39[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]36557[/TD]
[TD]GAUGE - LEVEL / TEMP[/TD]
[TD="align: right"]52.2[/TD]
[/TR]
[TR]
[TD="align: right"]11/07/2014[/TD]
[TD="align: right"]36559[/TD]
[TD]VALVE - SOLENOID[/TD]
[TD="align: right"]802.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/06/2015[/TD]
[TD="align: right"]39218[/TD]
[TD]PLATE - KEEPER[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]29/02/2016[/TD]
[TD="align: right"]39218[/TD]
[TD]PLATE - KEEPER[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]28/04/2014[/TD]
[TD="align: right"]40209[/TD]
[TD]PIGTAIL SCREW AUGER[/TD]
[TD="align: right"]330[/TD]
[/TR]
[TR]
[TD="align: right"]14/07/2014[/TD]
[TD="align: right"]42595[/TD]
[TD]PLUG MAGNETIC 1" BSPP[/TD]
[TD="align: right"]53.4[/TD]
[/TR]
[TR]
[TD="align: right"]9/09/2013[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]28/03/2014[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]25/08/2014[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]28/01/2016[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]30/07/2015[/TD]
[TD="align: right"]43246[/TD]
[TD]TEST COUPLING - Pressure[/TD]
[TD="align: right"]42.6[/TD]
[/TR]
[TR]
[TD="align: right"]28/01/2016[/TD]
[TD="align: right"]43246[/TD]
[TD]TEST COUPLING - Pressure[/TD]
[TD="align: right"]42.6[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]44641[/TD]
[TD]SPACER PLATE[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]44642[/TD]
[TD]SPACER PLATE[/TD]
[TD="align: right"]82.5[/TD]
[/TR]
[TR]
[TD="align: right"]7/05/2014[/TD]
[TD="align: right"]44767[/TD]
[TD]CONNECTOR SET, ELECTRICAL[/TD]
[TD="align: right"]109.16[/TD]
[/TR]
[TR]
[TD="align: right"]7/05/2014[/TD]
[TD="align: right"]44768[/TD]
[TD]CONNECTOR SET, ELECTRICAL[/TD]
[TD="align: right"]88.15[/TD]
[/TR]
[TR]
[TD="align: right"]5/08/2016[/TD]
[TD="align: right"]44871[/TD]
[TD]INJECTOR - GREASE - 1 OUTLET[/TD]
[TD="align: right"]284.18[/TD]
[/TR]
[TR]
[TD="align: right"]3/01/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]327[/TD]
[/TR]
[TR]
[TD="align: right"]19/02/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]400.15[/TD]
[/TR]
[TR]
[TD="align: right"]7/04/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]15/04/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]2/05/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]7/08/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]7/11/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]5/08/2016[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]433.82[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I have data which has several rows of information on it as below.
I need to find a way to find the latest unit cost for each item (by date). Eg if there are 5 different dates for the same part number to look at the one with the most recent date for that part and then select that cost as the most recent.
What is the best formula to use to get this.
[TABLE="width: 464"]
<tbody>[TR]
[TD]Posting Date[/TD]
[TD]Item No.[/TD]
[TD]Item Description[/TD]
[TD]Unit Cost[/TD]
[/TR]
[TR]
[TD="align: right"]4/07/2016[/TD]
[TD="align: right"]29949[/TD]
[TD]FILLER / BREARTHER - HYDRAULIC TANK[/TD]
[TD="align: right"]64.75[/TD]
[/TR]
[TR]
[TD="align: right"]17/01/2014[/TD]
[TD="align: right"]33162[/TD]
[TD]PUMP - Grease[/TD]
[TD="align: right"]2,455.00[/TD]
[/TR]
[TR]
[TD="align: right"]8/10/2014[/TD]
[TD="align: right"]33162[/TD]
[TD]PUMP - Grease[/TD]
[TD="align: right"]2,572.50[/TD]
[/TR]
[TR]
[TD="align: right"]9/05/2014[/TD]
[TD="align: right"]36360[/TD]
[TD]FILTER - RETURN / FILL[/TD]
[TD="align: right"]660[/TD]
[/TR]
[TR]
[TD="align: right"]11/07/2014[/TD]
[TD="align: right"]36362[/TD]
[TD]FILTER - RETURN[/TD]
[TD="align: right"]596.39[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]36557[/TD]
[TD]GAUGE - LEVEL / TEMP[/TD]
[TD="align: right"]52.2[/TD]
[/TR]
[TR]
[TD="align: right"]11/07/2014[/TD]
[TD="align: right"]36559[/TD]
[TD]VALVE - SOLENOID[/TD]
[TD="align: right"]802.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/06/2015[/TD]
[TD="align: right"]39218[/TD]
[TD]PLATE - KEEPER[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]29/02/2016[/TD]
[TD="align: right"]39218[/TD]
[TD]PLATE - KEEPER[/TD]
[TD="align: right"]25[/TD]
[/TR]
[TR]
[TD="align: right"]28/04/2014[/TD]
[TD="align: right"]40209[/TD]
[TD]PIGTAIL SCREW AUGER[/TD]
[TD="align: right"]330[/TD]
[/TR]
[TR]
[TD="align: right"]14/07/2014[/TD]
[TD="align: right"]42595[/TD]
[TD]PLUG MAGNETIC 1" BSPP[/TD]
[TD="align: right"]53.4[/TD]
[/TR]
[TR]
[TD="align: right"]9/09/2013[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]28/03/2014[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]25/08/2014[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]28/01/2016[/TD]
[TD="align: right"]42738[/TD]
[TD]VALVE - BALL - 1/4"[/TD]
[TD="align: right"]14.3[/TD]
[/TR]
[TR]
[TD="align: right"]30/07/2015[/TD]
[TD="align: right"]43246[/TD]
[TD]TEST COUPLING - Pressure[/TD]
[TD="align: right"]42.6[/TD]
[/TR]
[TR]
[TD="align: right"]28/01/2016[/TD]
[TD="align: right"]43246[/TD]
[TD]TEST COUPLING - Pressure[/TD]
[TD="align: right"]42.6[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]44641[/TD]
[TD]SPACER PLATE[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD="align: right"]30/04/2014[/TD]
[TD="align: right"]44642[/TD]
[TD]SPACER PLATE[/TD]
[TD="align: right"]82.5[/TD]
[/TR]
[TR]
[TD="align: right"]7/05/2014[/TD]
[TD="align: right"]44767[/TD]
[TD]CONNECTOR SET, ELECTRICAL[/TD]
[TD="align: right"]109.16[/TD]
[/TR]
[TR]
[TD="align: right"]7/05/2014[/TD]
[TD="align: right"]44768[/TD]
[TD]CONNECTOR SET, ELECTRICAL[/TD]
[TD="align: right"]88.15[/TD]
[/TR]
[TR]
[TD="align: right"]5/08/2016[/TD]
[TD="align: right"]44871[/TD]
[TD]INJECTOR - GREASE - 1 OUTLET[/TD]
[TD="align: right"]284.18[/TD]
[/TR]
[TR]
[TD="align: right"]3/01/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]327[/TD]
[/TR]
[TR]
[TD="align: right"]19/02/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]400.15[/TD]
[/TR]
[TR]
[TD="align: right"]7/04/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]15/04/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]2/05/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]7/08/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]7/11/2014[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]382.91[/TD]
[/TR]
[TR]
[TD="align: right"]5/08/2016[/TD]
[TD="align: right"]44872[/TD]
[TD]INJECTOR - GREASE - 2 OUTLET[/TD]
[TD="align: right"]433.82[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]