How to export the list of participants and groups in Excel format from Moodle
To export the list of participants and groups for a Moodle course in Excel format, follow these steps:
Go to the Moodle course from which you wish to export participants and groups
Click on the “Participants” tab
Select the desired users
At the bottom of the page, in the drop-down list, select “Download data in Excel format”.