17

Using QGIS 1.8, I've got a shapefile with an integer field called "AREA" and I'd like to sum the values which are in this shapefile.

Does anybody know how to?

1

2 Answers 2

29

You can immediately get field summary data, including sums, from the menu Vector|Analysis tools|Basic statistics:

enter image description here

You could also open the .dbf file associated with your shapefile in Excel or OpenOffice, and you'll be able to work with all the field values as a spreadsheet.

2
  • Thank's a lot, Simbamangu. That's exactly what I was looking for.
    – Robert 300
    Oct 28, 2012 at 15:27
  • @Robert300 accept the answer with the checkbox
    – BERA
    Nov 8, 2018 at 18:35
2

Using the DB Manager SQL window, you can use SQL expressions with SQL spatial functions to sum, group, etc.

This can be used on shapefiles, or any other type of layer in your QGIS project:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.