Sex usual_residence registered_place income_1 income_2
Male New York Washington Dc 2000 2112
Female Washington Dc Washington Dc 2522 1222
Male New York Washington Dc 2133 43322
Male New York New York 2733 2990
How to export these table to excel

**bysort Sex: table usual_residence registered_place, c (sum income1)
**tabstat income_1 income_2, stat(sum) by (Sex)
**bysort Sex: tabstat income_1 income_2, stat(sum) by (usual_residence)