I have seen all the questions for this question, and I try all the answer like copy paste, csv (in fact this I don't know where to find) but none of all is not the right answer.
Can anyone help me?
Right click on the layer in the Table of Contents (aka. legend or layer tree) and open the
Save As... dialog.
Once there, click on the
Format option list and choose
MS Office Open XML spreadsheet [XLSX].
Note that you also have an option for Libre Office files:
Open Document spreadsheet [ODS].
I'm using QGIS v.2.14.4
PREVIOUS ANSWER (still valid):
Install the XY Tools plugin by Richard Duivenvoorde.
Select a vector file from the ToC (that is, make it active).
Vector->XY tools->Save attribute table as Excel file.
You would need the Python library xlw installed for doing so.
To get a csv file of the attribute table, rightclick on the layer in the legend, select
Save As ..., and change the file format from shapefile to CSV.
You might need to change the separator from comma to semicolon in a text editor if Excel does not like the default separator.
There's also the MMQGIS plugin which, when downloaded and installed from the toolbar (Plugins > Manage and Install Plugins...), has the tool:
Attributes Export to CSV File
In QGIS versions 3 and above, the easiest way to export an attribute table is to:
Save features as...
Comma Separated Value [CSV]in the
add saved file to mapat the bottom of the window so that the file does not get added to your project as a data layer
Export the layer as a shapefile, find the shapefile on your PC. Copy/Rename the filename of the DBF part of the shapefile exportes to be 8 or under characters if it's not. (OLD MS DOS FILENAME ISSUE). Then, drag-drop the DBF right into Excel.
Save as XLS.
The copy paste method right form QGIS made text/character returns in a blob reset to the next row and cause data problems in excel.