Used (last row and last column with values) Get last row and last column.(Microsoft Excel Office Scripts)
Introduction to how to get the last row and last column using Office scripts.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed