Hello guys!

As the title says, I want to reduce a large group of data like the image shows (I hope it is understable).

LnPBIzG.png

How can I do it automatically?

Thanks!!

Cheers!