Hi @Kingsley_James ,
Do you want to check if a record exists in an Excel table, if yes, get row id from the Excel, if not, insert a row in the Excel table.
Please check if the following scenario will work for you.
When an item is created in SharePoint list, check if it already exists in Excel table, if yes, get the corresponding row, if not, insert the item in the Excel table.
Add the trigger When an item is created.
Initialize a String variable named as Rows.
Get rows from the Excel table.
Add an apply to each, get value from the action Get rows, then add Append to string variable action within the Apply to each, select dynamic content name for the Value field.
Note: name is one of the column in my Excel table.
Under the Apply to each, add a Condition to check if variable Rows contains Title from the trigger.
Under if yes branch, add Condition2 to find out the specific row with Title is equal to name. Then Get row under if yes branch.
Under if no branch, insert row in the Excel table.
Images for your reference.


Best regards,
Mabel