DataPilots are OpenOffice.org Calc's equivalent of what MS Excel and other spreadsheets call pivot tables. Under any name, they are a tool for extracting and summarizing the information contained in ...
Such a thing could be easily done with a macro invoked from a button on your sheet, but it would be easier to answer your second question if you gave a bit more detail about what you're trying to do & ...