(Assuming Match 1 is in row 2, match# in col A, winner in col D)
Here is the step-by-step guide to building it. 9 team double elimination bracket excel
Or better: Use XLOOKUP to pull winner by match#. (Assuming Match 1 is in row 2, match#