This should only take 1 Apply to each at most.
You probably have an extra SP list reference somewhere where you should only be referencing the Filter array items & Excel.
I’m assuming your Filter array From input is the SP values.
Then the conditional should be an expression & a dynamic content.
item()?[‘Name’] eq InsertExcelDynamicContentForName
Then your Update item action should only have Filter array & Excel references.
Like body(‘Filter_array’)[‘ID’]