A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Do you have Excel in Office 2019, Office 2021 or Microsoft 365? If so, you can use the following formula in D2, then fill down:
=TEXTJOIN("-",TRUE,A2:C2)