If your data is "quite big", then all the more reason to use a pivot table. Give your source data headings (in this case, I used "Code", "Type" and "Date", then simply select your source data, click Insert > Pivot Table, check your source data range, and click "OK" to insert a pivot table on a new worksheet. In the Pivot Table Field list, put "Code" in the "Filters" section, and "Date" in the "Rows" section. Now click the "Code" dropdown filter and choose "PX".
If you're using Excel 2010 or later, then you could use Power Query, instead - format your source data as a table, then use something like this:
Attached file shows an example of both approaches.
Bookmarks