Question: how to export data into excel from tableau?
Answer: In Tableau Desktop: select Worksheet > Export > Crosstab to Excel. If you're using a Mac, this option opens a dialog box where you can save the file. ... 
In Tableau Server or Tableau Online, open a view or dashboard and select Download > Crosstab.