Use Time Based Course Report : Excel exports
From MoodleDocs
Excel exports are available on detailed and group page.
Group export will create an excel aggregating one detailed report (two pages) per user.
Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: Use Time Based Course Report : Excel exports.