Hi @Phineas
Pls check the below sample flow for dynamically get the table name & fetching records from the it.
Before "List rows present in a table", add "Get tables" action to get all the tables of the excel file:

Now, add filter array action to filter the table array based on its name. Here, I have hard coded the table name "Table2", but you can pass the variable as per your need:

Finally, set the table name from the output body of filter array action in "List rows present in a table":

If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks