Extract URL domain root in Excel and Google Sheets

=LEFT(A2,(FIND(".com/",A2,1)+3))

A2 = data cell

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.