thank you for your prompt reply.
But it is not what I need to have.
As you can see in the file that I have attached to my first post:
-I don't need to know exact date, it's irrelevant, I only need last three records (which happens to be connected to date).
-and I need them to be located in rows, not in columns, like:
product1 record 1 record 2 record 3
product2 record1 recodr2 record3
and your solution looks like
product 1 record1
That is my 'headache'