Export history information for averaging data

Is there anyway to export history information to get data in the form of numbers rather than picture graphs.

It would be useful to manipulate the histroy info and get averages etc.

Any ideas?