Data Filtering

JTullah

New Member
Joined
Sep 28, 2006
Messages
4
I have a list of data in Excel. It is a list of Transactions for Inventory records. For example

Item Description Date Amount
1234, Test Item, 01/01/06, 100.00
1234, Test Item, 01/06/06, 150.00
5426, AN other item, 05/05/06, 170.00
5426, AN other item, 12/12/06, 100.00

I want to only display one line for each item, showing the latest transaction amount, based upon the most recent transaction date. i.e. using the example above the list would show;

Item Description Date Amount
1234, Test Item, 01/06/06, 150.00
5426, AN other item, 12/12/06, 100.00

I am using MS Query to retireve the data from a SQL2000 source. Ideally i would like to filter the data at retieval stage, however if i can not i am happy for excel to filter the list.

Help!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Tyarra

New Member
Joined
Aug 23, 2006
Messages
23
I'm sure a MSQuery person will post how to filter at the time of query, but if not, try this:

Sort your data, by Item (ascending) and by Date (Decending)

In the column following your last bit of data, in the first row of data (assuming E2 here) enter, then copy down:
=IF(A2<>A1,"TRUE", "FALSE")

Then, on Column E do an Autofilter, for "TRUE", this will be your last date for each item.
 

Forum statistics

Threads
1,171,273
Messages
5,874,769
Members
433,071
Latest member
llokjj

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
Top