How to combine multiple cells with leading zeros into a cell in Excel?
In this tutorial, I am going to talk about combining multiple cells with leading zeros into a cell and keeping the leading zeros in Excel as below screenshot shown. If you have some interest in this task, please read the below details.
In Excel, fortunately, you can use the CONCATRNATE function to combine cells and keep the leading zeros.
Select a blank cell, and type this formula =CONCATENATE(A1, B1,C1), press Enter key, then you can drag the autofill handle to fill this formula to the range you need.
1. You also can use this formula =A1&B1&C1 to combine cells and keep the leading zeros.
2. If you want to combine the cells and separate them by space, you can use this formula =CONCATENATE(A1," ",B1," ",C1) or this formula =A1&" "&B1&" "&C1.
If you have Kutools for Excel, you can quickly combine cells without losing data by columns, rows or to combine multiple cells into one by Combine function.
|Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.|
After free installing Kutools for Excel, please do as below:
1. Select the data range you need to combine, and click Kutools > Merge & Split > Combine Rows, Columns or Cells without Losing Data. See screenshot:
2. Then in the popping dialog, do as below:
(1) Under To combine selected cells according to following options, select the option you need to combine cells based on.
(2) Then you can specify a separator to separate the combined data, here I select Nothing.
(3) Decide where to place the result, you can select Left cell or Right cell.
(4) Under Options section, you can specify the operation on combined cells.
3. Click Ok or Apply. Now you can see the results:
Combine into single cell
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 7 months agoUsing text like this works.
- To post as a guest, your comment is unpublished.· 1 years agoconcatenate does not preserve leading zeros.
- To post as a guest, your comment is unpublished.· 11 months agoCould you show your data for me to find the reasons that the formula does not work for you?
- To post as a guest, your comment is unpublished.· 8 months agoIt only works in the example because the entries are TEXT cells. (Noted by the little green triangles in the upper-left corner)
- To post as a guest, your comment is unpublished.· 7 months agoYep, more or less useless! Would be interested in a way of doing this with numbers, otherwise it's just joining text.