Export commands and output of the Databricks Notebook to MS Excel

AJ270990
Contributor III

I have a Databricks notebook and I have several headers, SQL commands and their output. I am currently copying the output and SQL commands manually to excel for a report. How can I reduce the manual work of copy pasting from Notebook to excel and automate it?