Share via

Excel - Combining 3 Columns Into 1

Anonymous
2022-11-04T17:39:51+00:00

I have a spreadsheet with three columns that I would like to merge into 1 with dashes in between. This issue is that there is not always information in all three columns so I assume I need some sort of nested "if" function. Can someone please help?

Column 1 Column 2 Column 3 Should Result:
5500 100 5500-100
4560 1012 4560-1012
Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2022-11-04T18:47:36+00:00

    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)

    7 people found this answer helpful.
    0 comments No comments