How to open an Excel file in Excel Online on a button click in SharePoint Online?

I need to open an Excel file in Excel online on a button click that I get back from Document Library .

I followed this, but it shows me an error page like & # 39; The item does not exist. It may have been deleted by another user. & # 39;

Please suggest.