
Add an “Embed Web part” and paste the code you copied from the Excel web app.
Now, navigate to your Modern SharePoint Online page where you would like to show the Excel file. You can customize further by setting other preferences on the embed page. In the Embed window, choose the content from the Excel spreadsheet you want to show, such as a Table, Range of Cells, or full workbook. Open the Excel file in the Web browser (Excel Online) > Click on File > Share > Embed. Upload the Excel spreadsheet to SharePoint Online document library first. However, we can use the Embed web part to display an Excel spreadsheet in SharePoint Online: We don’t have Excel Web Access Web Part in modern SharePoint Online sites that integrate an Excel sheet into SharePoint pages.
SharePoint Online: How to Embed an Excel Spreadsheet? Requirement: Display Excel Spreadsheet in SharePoint Online.