Doesn't Excel already do this on its own? It's based on an IE control in my ancient version (2010), but perhaps it has been updated by now.
PDFs can often be extracted too in a similar way.
I feel exhausted every time I see another thread on HN about what to do when you will not learn Excel & Office because it's for PHBs and secretaries.