Most recent price in a data set

vgr

New Member
Joined
May 25, 2012
Messages
15
Hi
I was going through some sale data which had customer name, item code, item description, cost/unit, quantity and value.

DateCustomerItem codeItem DescCost/unitquantityvalue
01-02-2013BAMA3three143705180
02-02-2013CAMA1one101571570
03-02-2013DAMA2three143444816
04-02-2013BAMA3three133764888
05-02-2013CAMA2three121942328
06-02-2013DAMA3three105475470
07-02-2013BAMA3three52911455
08-02-2013CAMA3three63001800
09-02-2013DAMA1one15911365
10-02-2013BAMA3three132222886
11-02-2013CAMA3three113744114
12-02-2013DAMA1one132773601
13-02-2013CAMA1one94343906

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>


How do I compare the latest price per item for each customer?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi. Let's try this.

Excel 2012
ABCDEFGHIJK
1DateCustomerItem codeItem DescCost per unitQuantityValuelast for each Customer
2February 1, 2013BAMA3three143705180BAM $ 13.00 February 10, 2013
3February 2, 2013CAMA1one101571570CAM $ 9.00 February 13, 2013
4February 3, 2013DAMA2three143444816DAM $ 13.00 February 12, 2013
5February 4, 2013BAMA3three133764888
6February 5, 2013CAMA2three121942328
7February 6, 2013DAMA3three105475470
8February 7, 2013BAMA3three52911455
9February 8, 2013CAMA3three63001800
10February 9, 2013DAMA1one15911365
11February 10, 2013BAMA3three132222886
12February 11, 2013CAMA3three113744114
13February 12, 2013DAMA1one132773601
14February 13, 2013CAMA1one94343906

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet7

Worksheet Formulas
CellFormula
J2=INDEX($E$2:$E$14,SUMPRODUCT(MAX(($B$2:$B$14=$I2)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)
K2=INDEX($A$2:$A$14,SUMPRODUCT(MAX(($B$2:$B$14=$I2)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)
J3=INDEX($E$2:$E$14,SUMPRODUCT(MAX(($B$2:$B$14=I3)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)
K3=INDEX($A$2:$A$14,SUMPRODUCT(MAX(($B$2:$B$14=$I3)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)
J4=INDEX($E$2:$E$14,SUMPRODUCT(MAX(($B$2:$B$14=I4)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)
K4=INDEX($A$2:$A$14,SUMPRODUCT(MAX(($B$2:$B$14=$I4)*ROW($B$2:$B$14)))-ROW($A$2:$A$14)+1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top