CONCATENATE in Excel: combine text strings, cells and columns

In this tutorial, you will learn various ways to concatenate text strings, cells, ranges, columns and rows in Excel using the CONCATENATE function and "&" operator.

In your Excel workbooks, the data is not always structured according to your needs. Often you may want to split the content of one cell into individual cells, or do the opposite - combine data from two or more columns into a single column. Common examples that require concatenation in Excel are joining names and address parts, combining text with a formula-driven value, displaying dates and times in the desired format, to name a few.

In this tutorial, we are going to explore various techniques of Excel string concatenation so that you can choose the method best suited for your worksheets.

What is "concatenate" in Excel?

In essence, there are two ways to combine data in Excel spreadsheets:

  • Merge cells
  • Concatenate cells' values

When you merge cells, you "physically" merge two or more cells into a single cell. As a result, you have one larger cell that is displayed across multiple rows and/or columns in your worksheet.

When you concatenate cells in Excel, you combine only the contents of those cells. In other words, concatenation in Excel is the process of joining two or more values together. This method is often used to combine a few pieces of text that reside in different cells (technically, these are called text strings or simply strings) or insert a formula-calculated value in the middle of some text.

The following screenshot demonstrates the difference between these two methods:
Merge and concatenate in Excel

Merging cells in Excel is the subject of our next article, and in this tutorial we will tackle two essential ways to concatenate strings in Excel - by using the CONCATENATE function and the Excel & operator.

Excel add-in to merge columns

Combine columns row by row
Merge Cells Wizard for Excel Read more

Quickly merge cells without any formulas!

And keep all your data safe in Excel
Merge Cells Wizard for Excel Read more

Excel CONCATENATE function

The CONCATENATE function in Excel is designed to join different pieces of text together or combine values from several cells into one cell.

The syntax of Excel CONCATENATE is as follows:

CONCATENATE(text1, [text2], …)

Where text is a text string, cell reference or formula-driven value.

Below you will find a few examples of using the CONCATENATE function in Excel.

Note. In Excel 2016, Excel 2019, Excel Online and Excel Mobile, CONCATENATE is replaced with the CONCAT function, which has exactly the same syntax. Although the CONCATENATE function is kept for backward compatibility, it is recommended to use CONCAT instead because Microsoft does not give any promises that CONCATENATE will be available in future versions of Excel.

Concatenating the values of several cells

The simplest CONCATENATE formula to combine the values of cells A1 and B1 is as follows:


Please note that the values will be knit together without any delimiter, as in row 2 in the screenshot below.

To separate the values with a space, enter " " in the second argument, as in row 3 in the screenshot below.

CONCATENATE formula to combine the values of two cells

To separate the concatenated values with other delimiters such as a comma, space or slash, please see Excel CONCATENATE formulas with special characters.

Concatenating a text string and cell value

There is no reason for the Excel CONCATENATE function to be limited to only joining cells' values. You can also use it to concatenate various text strings to make the result more meaningful. For example:

=CONCATENATE(A1, " ", B1, " completed")

The above formula informs the user that a certain project is completed, as in row 2 in the screenshot below. Please notice that we add a space before the word " completed" to separate the concatenated text strings.

Naturally, you can add a text string in the beginning or in the middle of your Concatenate formula as well:

=CONCATENATE("See ", A1, " ", B1)

A space (" ") is added in between the combined values, so that the result displays as "Project 1" rather than "Project1".
Concatenating a text string and cell value

Concatenating a text string and a formula-calculated value

To make the result returned by some formula more understandable for your users, you can concatenate it with a text string that explains what the value actually is.

For example, you can use the following formula to return the current date:

=CONCATENATE("Today is ",TEXT(TODAY(), "dd-mmm-yy"))
Concatenating a text string and a formula-calculated value

Tip. If you would like to delete the source data without affecting the resulting text strings, use the "Paste special - values only" option to convert formulas to their values. The detailed instructions can be found in How to replace formulas with values in Excel.

Using CONCATENATE in Excel - things to remember

To ensure that your CONCATENATE formulas always deliver the correct results, remember the following simple rules:

  • Excel CONCATENATE function requires at least one "text" argument to work.
  • In a single CONCATENATE formula, you can concatenate up to 255 strings, a total of 8,192 characters.
  • The result of the CONCATENATE function is always a text string, even when all of the source values are numbers.
  • Excel CONCATENATE does not recognize arrays. Each cell reference must be listed separately. For example, you should write =CONCATENATE(A1, A2, A3) instead of =CONCATENATE(A1:A3).
  • If at least one of the CONCATENATE function's arguments is invalid, the formula returns a #VALUE! error.

"&" operator to concatenate strings in Excel

In Microsoft Excel, & operator is another way to concatenate cells. This method come in very handy in many scenarios because typing the ampersand sign (&) is much quicker than typing the word "concatenate" :)

Similarly to the CONCATENATE function, you can use "&" in Excel to combine different text strings, cell values and results returned by other functions.

Excel "&" formula examples

To see the concatenation operator in action, let's re-write the CONCATENATE formulas discussed above:

Concatenate the values in A1 and B1:


Concatenate the values in A1 and B1 separated with a space:

=A1&" "&B1

Concatenate the values in A1, B1 and a text string:

=A1 & B1 & " completed"

Concatenate a string and the result of the TEXT / TODAY function:

="Today is " & TEXT(TODAY(), "dd-mmm-yy")

As demonstrated in the screenshot below, the CONCATENATE function and "&" operator return identical results:
Concatenate strings in Excel using the & operator

Excel "&" operator vs. CONCATENATE function

Many users wonder which is a more efficient way to concatenate strings in Excel - CONCATENATE function or "&" operator.

The only essential difference between CONCATENATE and "&" operator is the 255 strings limit of the Excel CONCATENATE function and no such limitations when using the ampersand. Other than that, there is no difference between these two concatenation methods, nor is there any speed difference between the CONCATENATE and "&" formulas.

And since 255 is a really big number and in real-life tasks someone will hardly ever need to combine that many strings, the difference boils down to the comfort and ease of use. Some users find CONCATENATE formulas easier to read, I personally prefer using the "&" method. So, simply stick to the concatenation technique that you feel more comfortable with.

Concatenate cells with a space, comma and other characters

In your worksheets, you may often need to join values in a way that includes commas, spaces, various punctuation marks or other characters such as a hyphen or slash. To do this, simply include the character you want in your concatenation formula. Remember to enclose that character in quotation marks, as demonstrated in the following examples.

Concatenating two cells with a space:

=CONCATENATE(A1, " ", B1) or =A1 & " " & B1

Concatenating two cells with a comma:

=CONCATENATE(A1, ", ", B1) or =A1 & ", " & B1

Concatenating two cells with a hyphen:

=CONCATENATE(A1, "-", B1) or =A1 & "-" & B1

The following screenshot demonstrates how the results may look like:
Concatenating cells with a space, comma and other characters

Concatenate text strings with line breaks

Most often, you would separate the concatenated text strings with punctuation marks and spaces, as shown in the previous example. In some cases, however, may need to separate the values with a line break, or carriage return. A common example is merging mailing addresses from data in separate columns.

A problem is that you cannot simply type a line break in the formula like a usual character, and therefore a special CHAR function is needed to supply the corresponding ASCII code to the concatenation formula:

  • On Windows, use CHAR(10) where 10 is the ASCII code for Line feed.
  • On the Mac system, use CHAR(13) where 13 is the ASCII code for Carriage return.

In this example, we have the address pieces in columns A through F, and we are putting them together in column G by using the concatenation operator "&". The merged values are separated with a comma (", "), space (" ") and a line break CHAR(10):

=A2 & " " & B2 & CHAR(10) & C2 & CHAR(10) & D2 & ", " & E2 & " " & F2

Concatenating cells with line breaks

Note. When using line breaks to separate the concatenated values, you must have the "Wrap text" option enabled for the result to display correctly. To do this, press Ctrl + 1 to open the Format Cells dialog, switch to the Alignment tab and check the Wrap text box.

In the same manner, you can separate concatenated strings with other characters such as:

  • Double quotes (") - CHAR(34)
  • Forward slash (/) - CHAR(47)
  • Asterisk (*) - CHAR (42)
  • The full list of ASCII codes is available

Though, an easier way to include printable characters in the concatenation formula is to simply type them in double quotes as we did in the previous example.

Either way, all four of the below formulas yield identical results:

=A1 & CHAR(47) & B1

=A1 & "/" & B1



Concatenating cells with special characters

How to concatenate columns in Excel

In order to concatenate two or more columns in Excel, you just enter a usual concatenation formula in the first cell, and then copy it down to other cells by dragging the fill handle (the small square that appears in the lower right hand corner of the selected cell).

For example, to concatenate two columns (column A and B) separating the values with a space, you enter the following formula in cell C2, and then copy it down to other cells. When you are dragging the fill handle to copy the formula, the mouse pointer changes to a cross, as shown in the screenshot below:

Concatenating two columns in Excel

Tip. A quick way to copy the formula down to other cells in the column is to select the cell with the formula and double-click the fill handle.

Please note that Microsoft Excel determines how far to copy cells after the fill handle double click based on the cells referred to by your formula. If there happen to be empty cells in your table, say cell A6 and B6 were blank in this example, the formula would be copied up to row 5 only. In this case, you would need to drag the fill handle down manually to concatenate the entire columns.

An alternative way to concatenate columns in Excel is to use the corresponding option of the Merge Cells add-in.

How to concatenate a range of cells in Excel

Combining values from multiple cells might take some effort because the Excel CONCATENATE function does not accept arrays and requires a single cell reference in each argument.

To concatenate several cells, say A1 to A4, you need either of the following formulas:


=A1 & A2 & A3 & A4

When joining a fairly small range, it's no big deal to enter all the references in the formula bar. A large range would be tedious to add, typing each cell reference manually. Below you will find 3 methods of quick range concatenation in Excel.

Method 1. Press CTRL to select multiple cells to be concatenated

To quickly select several cells, you can press the CTRL key and click on each cell you want to include in the CONCATENATE formula. Here are the detailed steps:

  1. Select a cell where you want to enter the formula.
  2. Type =CONCATENATE( in that cell or in the formula bar.
  3. Press and hold Ctrl and click on each cell you want to concatenate.
  4. Release the Ctrl button, type the closing parenthesis in the formula bar and press Enter.

To concatenate a range of cells, press CTRL to select multiple cells to be concatenated.

Note. When using this method you must click each individual cell. Selecting a range with the mouse would add an array to the formula, which the CONCATENATE function does not accept.

Method 2. Use the TRANSPOSE function to get the range

When you need to concatenate a huge range consisting of tens or hundreds of cells, the previous method is not fast enough because it requires clicking on each cell. In this case, a better way is to use the TRANSPOSE function to return an array, and then replace it with individual cell references in one fell swoop.

  1. In the cell where you want to output the concatenated range, enter the TRANSPOSE formula, for example:


  2. In the formula bar, press F9 to replace the formula with calculated values. As the result, you will have an array of numbers to be concatenated.
  3. Delete the curly braces surrounding the array values.

    Use the TRANSPOSE function to get the range

  4. Type =CONCATENATE( before the first value, then type the closing parenthesis after the last value, and press Enter.

    Use the CONCATENATE function to combine all of the values.

Note. Whichever method you use, the concatenated value in C1 is a text string (notice its left-alignment in the cell), although each of the original values is a number. This is because the CONCATENATE function always returns a text string regardless of the source data type.

Method 3. Use the Merge Cells add-in

A quick and formula-free way to concatenate any range in Excel is to use the Merge Cells add-in for Excel with the "Merge all areas in selection" option turned off, as demonstrated in Combine the values of several cells into one cell.

Concatenate numbers and dates in various formats

When you concatenate a text string with a number or date, you may want to format the result differently depending on your dataset. To do this, embed the TEXT function in your Excel concatenate formula.

The TEXT(value, format_text) function has two arguments:

  • In the first argument (value), you supply a number or date to be converted to text, or a reference to the cell containing a numeric value.
  • In the second argument (format_text), you enter the desired format using the codes that the TEXT function can understand.

We have already discussed one such formula in the beginning of this tutorial that concatenates text and date.

I will remind you that when combining a text string and date, you have to use the TEXT function to display the date in the desired format. For example:

=CONCATENATE("Today is ", TEXT(TODAY(), "mm/dd/yy"))


="Today is " & TEXT(TODAY(), "mm/dd/yy")

A few more formula examples that concatenate a text value and number follow below:

=A2 & " " & TEXT(B2, "$#,#0.00") - display the number with 2 decimal places and the $ sign.

=A2 & " " & TEXT(B2, "0.#") - does not display extra zeros and the $ sign.

=A2 & " " & TEXT(B2, "# ?/???") - display the number as a fraction.

Concatenating numbers and dates in various formats

How to split cells (opposite of CONCATENATE in Excel)

If you are looking for the opposite of CONCATENATE in Excel, i.e. you want to split one cell into several cells, a few options are available to you:

  • Text to Columns feature
  • Flash Fill option in Excel 2013 and 2016
  • Formulas (MID, RIGHT, LEFT functions)

You can find the detailed steps illustrated with formula examples and screenshots in the How to split cells in Excel tutorial.

Merge Cells add-in - formula-free way to concatenate cells in Excel

With the Merge Cells add-in included in Ultimate Suite for Excel, you can efficiently do both:

  • Merge several cells into one without losing data.
  • Concatenate the values of several cells into a single cell and separate them with any delimiter of your choosing.

The Merge Cells tool works with all Excel versions from 2003 to 2016 and can combine all data types including text strings, numbers, dates and special symbols. Its two key advantages are simplicity and speed - any concatenation is done in a couple of clicks. And now, let me show it to you in action.

Combine the values of several cells into one cell

To combine the contents of several cells, you select the range to concatenate and configure the following settings:

  • Cells into one under "What to merge";
  • Select the delimiter you want under "Separate values with", it's a comma and a space in this example;
  • Choose where you want to place the result, and most importantly
  • Uncheck the "Merge all areas in the selection" option. It is this option that determines whether the cells are merged or the cells' values are concatenated.

Combine the values of several cells into one cell with the Merge Cells add-in

Combine columns row-by-row

To concatenate two or more columns, you configure the Merge Cells' settings in a similar way, but choose Columns under "What to merge":

Concatenating columns row-by-row

Join rows column-by-column

To combine data in each individual row, column-by-column, you choose to merge Rows, select the delimiter you want (line break in this example), configure other settings the way you want and hit the Merge button. The result may look similar to this:
Concatenating rows column-by-column

To check how the Merge Cells add-in will cope with your data sets, you are welcome to use the below link to download a fully functional trial version of our Ultimate Suite for Excel. And if you are happy with the result, you can get it at a very special price:

Get Promo Code for Ultimate Suite - exclusive offer for our blog readers!

Available downloads

Concatenation formula examples (.xlsx file)
Ultimate Suite 14-day fully-functional version (.zip file)

358 responses to "CONCATENATE in Excel: combine text strings, cells and columns"

  1. Mark T. says:

    How do i concatenate if I only want single quotes('') on the first set of numbers but nothing on the last 2. example. This is how I want the results to look.

    insert into #driver select'98765432',20170517,5

    Thanks for your help!

  2. Karen says:

    I have 4 columns of data (A - D) and each project has 13 rows.
    Column data: Name, start, finish, duration
    Project 1
    13 rows of data

    Project 2
    13 rows of data

    How do I get Concatenate or another method to read the 13 rows of data across and then down??:
    A3, B3, C3, D3,
    A4, B4, C4, D4,
    A5, B5, C5, D5

    I need all 13 rows to read to a single row left to right.
    Can you help??

    • Kal Warden says:

      We feel you bruh... You can search the World Wide Web for the solution, but don't go for a page :")

  3. Abhinav says:


    Thank you for the detailed examples.

    I've a bit complicated query though, may be because I'm new to this.

    So, I need to fill Youtube URLs in one column and the Embed codes in another.

    Is it possible that I can just fill in the URL and the embed code generates by any formula?
    For E.g.

    Column 1:

    Column 2:

    Column 2 has the Embed code which has the Video ID after "embed/" that appears at the end after the "/" in Column 1.

    It is same for all the videos and I've to maintain a sheet of Thousands of them!
    So far I've been copying and pasting both from the YouTube videos but would love to know if it's possible to merge the partial text(ID) from column 1 in the middle of the text in Column 2.

    Thanks in advance!


  4. Abhinav says:

    Hi Svetlana,
    Thanks for replying.

    I did enter the desired result but it appears that it was not posted?

    I'll try again, don't know why it was removed.I'll put the contents of the Column 2 in the () if it helps in posting.

    Column 1:

    Column 2: ()

    So, Column 2 is the desired result and ZWiPQINKvW8 is the ID from Column 1.

    Hope it gets posted this time.


  5. Abhinav says:

    Hi Svetlana,

    The () didn't work so I've uploaded a screenshot and here the link.

    I hope it helps!

    Thanks in advance.


    • Hi Abhinav,

      All comments containing external links are subject to manual validation, that's why they did not get posted immediately (the only one working anti-spam technique we could think of :)

      As for the formula, the "iframe..." string is the same for all rows except for the ID from column 1, right? If so, you can split it into 2 parts, and put the parts into 2 separate cells. For example:

      Cell F1: <iframe width="560"… embed/
      Cell F2: " frameborder="0"… </iframe>

      And then, you can use the RIGHT() function to extract the ID (from A2 in this example), and concatenate the 3 parts like this:
      =F1&RIGHT(A2,LEN(A2)-FIND("/",A2, FIND("/", A2, FIND("/",A2)+1) +2))&F2

  6. Abhinav says:

    Greetings of the Day Svetlana!

    I just feel lucky that I found this forum.

    Thanks a ton for the solution.
    It works like a charm...

    Best Regards,

  7. jatay says:

    Hi there
    How can the last cell in a column filled from the first cell will automatically minus
    for example IN column A when in a2 was a number a2 - a1 and if in A3 was number A3 - A1 only the last fill cell minus first cell and write Answer in A10

  8. Brijesh Kumar says:

    how to remove duplicate entries ( which is comma separated) found in single columns ?
    example :- 8,4,7,8,6,3,3,9,6
    expected output :- 3,4,6,7,8,9

  9. Chester says:


    How to a concatenate this:

    A1 = "has a account balance of" and B1 = $ 2,250.38

    When I used concatenate the result always "has a account balance of 2250.38,
    the Result that I want is " has a account balance of $ 2,250.38"

    Thank you in Advance

    • Luke says:

      The problem is caused by the fact that your number is not entered into the cell with a $ symbol, etc. but the cell itself is formatted as currency (the actual cell content is just 2250.38 which is why the $ does not show when concatenating). The following will work:


  10. okewole says:

    pls I need Ur assistance to concatenate course still outstanding (CDO) of students prepared in Excel sheet e.g =if( A2:D2=0, concatenate A1,B1,C1,D1,",") can't it work if not I need Ur assistance.

  11. Keith says:

    I have inserted a row and typed in the formula

    =CONCATENATE(J1," ",K1)

    and have combined the first and last names of my clients. How do I now place the combined data into another cell without showing the above formula in the Excel formula bar?


    • Becca says:

      I copied my combined names and then did a Paste Special into a new column. I tried a few choices until the right one popped up.

  12. Celestine says:

    This is great, I understand the concatenate and the and operators better now. Thanks a lot. WOW!

  13. sonaikumar says:

    hi, i am sonai.i have one question please answer it.
    the format of the EXCELL is,
    so, split the address to this format,
    the source data is
    please, solve the's my humble request youto.immediately

  14. sonaikumar says:

    sry, i missing something
    actually the SOURCE DATA IS

    and the excel format is,

    oldno54,newno4355 eaststreet,virudhunagar mutharppati,sattur

    greengarden,chennai tn tamilnadu 600018

    so please help me,solve this problem immediately.

  15. Rajendra says:

    SREI $ 41,26,000 54 days
    how to use concatenate for figure including comma = Devid-$41,26,000-54days

  16. Nikhil Wadhwa says:

    how to use concatenate for (bluedart 5565565 24-Jul-17) in one column.. data in brackets are in 3 different column.

  17. Vikram Gajjala says:

    Hi All, This is my actual formula =IF(F$1,'Apr-2016'!J16,"") "Apr-2016" is the name of the sheet in the workbook, i would like to use concatenate so I can choose the year (2016) from another cell. please help many thanks

  18. Kevin Bernard says:

    How would you combine values from multiple cells separated by commas only when values exist?


    A B C
    1|George Herman Ruth
    2|Jackie Robinson
    3|Mark Marche McGwire

    Row 1= Concatenate(A1,",",B1,",",C1) = George, Herman, Ruth
    Row 2 = Jackie,,Robinson
    I don't want a comma when no values exist to separate.

    • Sarah says:

      Hi, was this question ever resolved, I have the same issue
      1 Major;Double Major
      2 Major
      3 Major;Double Major

      • James says:

        The double comma is there because the middle cell is blank. Try this:

        =IF(B2="",CONCATENATE(A2,", ",C2),CONCATENATE(A2,", ",B2,", ",C2))

  19. Aland says:

    Hello all,
    Is there a way concatenated results can be searchable (ctrl+find) and/or filterable?
    Thank you in advance for any tips :)

    • Hello, Aland,

      sure they can :)

      As for searching, you can use our Advanced Find and Replace add-in. You can download its fully functional trial version here and see if it works as you need.

      As for the filter, you should be able to use Excel built-in one, but if for some reason it doesn't work, you can try one from our collection of Quick Tools.

      Hope they help!

    • Aland says:

      Although this question was a bit more than a year ago, I too was attempting to figure this out and landed here. Excel can natively do a find of this information. With the native find window open select "Options<<" from there make sure you select Look in: "Values". The default is "Formulas" however this will not produce the results you are looking for. Hope this helps someone.

  20. DAVID says:

    Hi Aland,

    I have an excel table (C4:O12) that sums values W-L-T (win-loss-tie) records both horizontally and vertically when entering a "W", "L", or "T" in each cell in table with a resulting "0-0-0" format. I have the totals with this format in bottom row from C13:O13 as well as in column from P4:P12 Here are the following formulas Ive used:



    How do I sum the totals for either column O, or row 13 to get an overall total in the same "0-0-0" format?

    THANKS !

  21. tay says:

    what is the excel formula to reflect "8/1/2017" as "Aug"?

  22. jose says:

    how do i concatenate below:


    to this format:

    1001 thru 1005, 1008, 1013 thru 1016, 1020, 1021, 1025 thru 1026


    • SYED ASIF says:

      1- Select the cell where you need the result.
      2- Go to formula bar and enter data range ex. =TRANSPOSE(A1:A5)&” “
      3- Based on your regional settings, you can also try =A1:A5 (instead of =TRANSPOSE(A1:A5)).
      4- Select the entire formula and press F9 (this converts the formula into values).
      5- Remove the curly brackets from both ends.
      6- Add =CONCATENATE( to the beginning of the text and end it with a round bracket).
      7- Press Enter

  23. John Worsley says:

    Is it possible to concatenate data from columns based on a single reference column, so where the customer is the same name, concatenate all the references from each line into a single row:

    A B
    27918 Select
    27922 Select
    27920 Select
    27921 Select
    27919 Wholesale
    27923 Wholesale
    27924 CSP Supplies
    27925 CSP Supplies

    A B
    Select 27918,27922,27920,27921
    CSP 27924,27925

    Hope that makes sense?

  24. nisheet says:

    i Have 20 list of name like


    i want only 10 name in a single cell like kim,Solonin,Gafarova,Ayubov, etc
    using formula how ?

  25. Vipul says:

    Step 1 Sort names Alphabetically
    Step 2 Give 1 2 3 besides the names you wan't in order
    step 3 Sort selecting names & number by column having number ascending
    step 4 Use concatenate function for your numbered cell separating","

  26. Alvin says:

    I have a sheet formatted as a table, but when I try to use CONCATENATE it display the function text not the result of the function.

    For example:
    in cell A1 (header): CodeFirst
    in cell A2 (text value): AA
    in cell B1 (header): CodeSecond
    in cell B2 (text value): BB

    in cell C2: =CONCATENATE([@[CodeFirst]];[@[CodeSecond]])
    it display as it is, not AABB

    any ideas?

  27. Alvin says:

    in addtion to my question above, I format column C as General, not Text.

  28. Alvin says:

    Never mind, I solved it. Thanks.

  29. Billy says:

    Hi there,

    I am trying to use the concatenate function on two cells, one that is formatted as a number and another cell that is formatted as a percentage.

    It seems the new combined cell doesn't maintain the % formatting, so I am just ending up with a number and a very long decimal.

    Is it possible to keep the % formatting in the combined cell?


  30. Mahshid says:

    How to make new row in one cell or make alt+enter in concatenate formula

  31. sturgaa says:

    Goal: Take information from cell A2 on sheet "Ref", then use that to concatenate that information to set a reference list for sheet "2".

    Cell 2!A40: =Ref!A2

    Cell 2!B40: =if(B40=0," ","=Ref!b"&A40)

    So, when sheet "Ref" has something in Ref!A2 then 2!B2 will show what is in cell Ref!B2)

    I want to then be able to copy sheet "2" to make sheets"3","4","5", etc. and have Sheet "3" show what is in cell Ref!B3 and so on for each following sheets.

    • Hello,
      For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
      Please also don't forget to include the link to this comment into your email.
      I'll look into your task and try to help.

  32. Selva says:

    Used CONCATENATE(A1:A3 & " ," ) to combine cells with a separator it is working fine(Used F9). Now i need to apply for all rows but it is not working. Can you help here. Thanks

    • Hi Selva,

      Please try one of the following formulas:

      1. =CONCATENATE(A1,",",A2,",",A3,",")

      2. If you use Excel 2016, then you can try this array formula:
      Please don’t forget to press Ctrl + Shift + Enter to complete it. Once you do this, Excel will automatically enclose the formula in {curly braces}. In no case should you type the curly braces manually, the formula won't work.

      Hope this will help you.

  33. Ankur says:

    I have 2 columns Singer 1 and singer 2. I want to concatenate with comma separator. However in some rows only Singer 1 Values are available and if there is no value in singer 2 - I dun want the comma separator to be posted since there is a single value.

    For better understanding:
    Scenario 1 -
    Singer 1 - Jolly
    Singer 2 - Nerdsk
    Result of concatenation - Jolly, Nerdsk

    Scenario 2
    Singer 1 - Jolly
    Singer 2 -
    Result of Concatenation - Jolly,
    The result I m looking for is - Jolly without a comma

    Hope this explains what I am trying to convey.
    Do let me know a solution that I can implement.
    Thank You In Advance

  34. Christi Erwin says:

    I'm combining number cells. One of the number cells is formatted special to show three digits (000). But when I combine them the first zeros disappear. So, 001 in that cell needs to be displayed as 001 (which is exactly the number in that cell) not as 1 (single digit).

    How do I combine them and still keep my cell formatting the same.

    • Meredith says:

      I'm struggling with the same issue. I have several cells that I need to combine with hyphens to use as a budget code, but some of them are formatted as text and some of them are formatted "special" with a certain number of digits like you described. Some of the columns with a leading "0" are formatted as text, but I can't for the life of me figure out how to change the others without losing the leading zero again. Any help would be appreciated!

  35. Chris says:


    I have set up my formula and it covers a large range. I separate the texts with commas. How do I remove the excess commas at the end, without shorting the range? Thanks in advance!

  36. Shahad says:


    i need any help please
    i have a single column with 2322 cells, and want to combine the data for each 20 cells together on next column and continue


  37. Diane says:

    URGENT! - I have concatenate(C2, " ",B2),I have copied the data in the remaining fields.
    Now I need to REMOVE fields B & C without obtaining the #REF! error

  38. Elaine says:

    How can change names in single cell of a spread sheet from lastname, firstname
    entered just like that, with a comma. I want to cell to give me the names firstname lastname with no comma. Is that possible?

    • James says:

      You can do this by getting rid of your comma's. To do this, select all the names and then go to the "Data" tab and click on "Text to Columns". In this menu, you will make sure that "Delimited" is selected. Then click Next. On the next screen, make sure that only the "Comma" box is selected, then click Finish. When this happens, your single cell with LastName, FirstName will become two cells with LastName in the first cell and FirstName in the second cell. Then just use =CONCATENATE(FirstName Cell," ",LastName Cell) to get your desired results. If you want to be able to get rid of the first two columns, select your new results and copy them. Then under Paste Special, select paste values only.

  39. Richard says:


    Imstruggling to make 2 formulas based on these digits:


    1) I need a formula which will turn it into this:

    05517 012.010

    -Which is remove the 9
    -Then space after the 5th digit
    -Add decimal after 7th digit

    and 2)

    I also need to turn a different cell into this:


    -which is remove the first 6 digits
    - Then add the decimal in the same place as above.

    Any help woul be much appreciated!

  40. Meg says:

    Thank you for this excellent guide. I have a series of concatenated sentences each with text intermixed with values (numbers) pulled from other cells. In some cases, I have used the TEXT function to render the desired number format. However, I am looking to make the values (whether or not with the TEXT function) to pop out of the surrounding text in a contrasting colour. How can I format it to do this? I was hoping the TEXT function would enable this, but cannot see how. Thank you.

    • Hello,

      Please note that the TEXT function does not support color formatting. So if you copy a number format code from the Format Cells dialog that includes a color, e. g. $#,##0.00_);[Red]($#,##0.00), the TEXT function will accept the format code, but it won't display the color.

      Hope it will help you.

  41. Dan says:

    here is one i am trying to do...
    I have a pricing matrix and i have named each cell in the matrix by its location within the matrix, example...
    A1=ABa1, B1=ABa2, C1=ABa3
    A2=ABb1, B2=ABb2, C2=ABb3
    A3=ABc1, B3=ABc2, C3=ABc3

    so on another sheet i have my products that are coded with these name. example...
    Product A: S1234a1
    Product B: S4567b4

    i want to strip that "a1" off the end and then use it in the formula to show the price for ABa1.
    I use "RIGHT" formula to grab the 'a1' text, and then i use CONCATENATE with plain AB text to create the value ABa1 displayed in the cell. so thats great i can see a string on data that is exactly what i want

    so heres my dilemma...
    in any cell, if i manually type in "=ABa1", it refers to the cell which i named ABa1 and the value within that cell is displayed. makes sense works perfect...

    but what i want to do is use my CONCATENTATED string of data, rather that actually keying in the my "=ABa1".

    somehow like this....=(the concatenated data string i want use), and then will have the same affect as when i manually key it in.

  42. Art Villanueva says:

    How do I concatenate based a number such as...

    N = 5
    String = "Hello"
    Desired output = "xxxxxHello"

    N = 3
    String = "Hello"
    Desired output = "xxxHello"


  43. Falkon Nightsadale says:

    Thank you!

    While I'm pretty sue, that there is an easier way to do what I need (replace input value with text including said value), probably even in single column (yet no tutorial, how to do that, with concatenate function I achieved my goal:
    And even expanded it for future use (albeit at the cost of 2 extra columns *sad*):
    Result (where XXXXX is the input number):

  44. Saravanan Swaminathan says:

    thanks for the support

  45. SREEKANDAN says:

    COL1 COL2

    1 AAA
    1 GGG
    1 FFF
    2 GGG
    2 HHH
    3 RRR
    3 JJJ

    concatenate text based on criteria in Excel? FORMULAS

    • Doug says:

      Not sure what the criteria is, but here's a way to do this.
      If numbers are in cells A1 through A10 and letters are in cells B1 through B10 and your criteria is if a cell contains a "1" then:
      =IF(OR(A1=1,A2=1,A3=1,(Concatenate(B1," ",B2," ",B3))

  46. mohamedabuthahirm says:

    I want to concat A1 cell value 01
    B1 cell value 05
    c1 cell value 5
    how to concat
    I want result d1 cell 01055
    Please reply me

  47. mohamedabuthahirm says:

    Thank you for reply
    but i want result is 010155
    this result is 1155

    • Doug says:

      That sounds like a cell formatting issue.
      Select the cells and choose format cells and then choose custom and use one of the provided formats or use one as a starting point and then change it to the format you want.

  48. Elizabeth says:

    I want to use a concatenation formula. Pulling information for several cells the cells either have a date for cell F or are left blank. I want the formula to pick up the date or put in “no date at this time” and I’m not sure how to make the formula work.

    • Doug says:

      Will this work?
      Test to see if cell is empty, if it is then return "No Date At This Time", otherwise return the cell's contents.
      Where the data is in cell A18, it looks like this:
      =IF(ISBLANK(A18),"No Date at this time",A18)

  49. Elizabeth says:

    I want to use a concatenation formula. Pulling information for several cells the cells either have a date for example cell F4 or are left blank. I want the formula to pick up the date or put in “no date at this time” and I’m not sure how to make the formula work.

  50. Awosoji says:

    I may not know the right word to use pls pardon me:
    My name is Apple

    I want Column 1(My name is) to be linked with each of the Column 2 (name list) above in a new column(Column 3) Thanks

  51. DP says:

    I have a large data that are over 13K rows, I want to combine all of them into one cell. I know you can only have 8192 characters in an Microsoft Excel cell. I want to know if anyone know how to create a VBA macro or better way to have a formula that can do the job. Right now each cell has 9 characters in each cell so I am combining about 3200 cell at once, but I have to do this over and over again until i finish all my 13K records. I need to separate them by comma (,).
    For example: 123456789,123456789,123456789,123456789
    That is how I want it but I know I could only do 3200 records at a time.
    My original records looks like this:

  52. paban says:

    hi svetlana will you assist me to make letter lower case to uppercase formula for example I want" formula" text " rmul only to uppercase mean ruml lowercase to upper case RUML thank you

    • Doug says:

      Where the original text is in A1
      Enter =UPPER(A1) in an empty cell.
      The function has an expanded explaination in the article above.

  53. Kaushal says:

    All the things very nice....I were looking for concatenate function with carriage return and my luck & pleasure that I visited this page :)

    Got a very nice and easy solution.

    Thank you.

  54. Gerardo says:

    It's very usefull. Thanks !

  55. Liviu Tomulescu says:

    I am trying to reference other cells in excel that have formulas for an API. The following formula works: =RTD($B$1,,"srpt//OPT/20180629/p/137/USD", "Bid")

    But when I replace certain parts with referencing, it does not work:

    How do I fix this?

    Kind Regards,

  56. manisha pathak says:

    How to do?
    to this

    (in one shot without using one by one concatenation) .

  57. Drishti Trivedi says:

    i have number of say 100 links in which i need to edit 4 letters
    eg: (is source) (as result)
    how do i do it using concatenate formula

  58. Salim Khan says:


    i just want above result as per below give.


    Also, i want a particulars word search in a column in excel.

    So, Please guide us.

  59. sandeep kumar dubey says:

    Hello Sir/Madam,
    plz solve my problem that how to write many dates in a cell in excel sheet since a have a range of dates for example here Mr. Ram has taken 6 spells leave in a month as


    1. Mr.Ram 5 07/05/2018 11/05/2018
    2 18/05/2018 19/05/2018
    3 21/05/2018 23/05/2018
    2 25/05/2018 26/05/2018
    2 28/05/2018 29/05/2018
    1 31/05/2018 blank

    2. Mr.Paul 1 02/05/2018
    3 05/05/2018 07/05/2018
    2 11/05/2018 12/05/2018
    1 15/05/2018

    3. Mr.Mac 3 18/05/2018 20/05/2018
    3 26/05/2018 28/05/2018

    4. Mr.Bond 7 23/05/2018 29/05/2018

    i want to write all DAYS in a cell like above and all FROM DATE in a cell like above and also TO DATE in a cell like above.

    sir i want that if there is only two spells of leave of an employee there shows only two lines in cell and if there is three spells of leave of an employee then there shows only three lines in cell AND if there is only on day of leave then shows in only from date cell and to date will blank as shown in 6th spell as 1 day 31/05/2018.

    please HELP ME SIR/MADAM

  60. To_il says:

    Thanks. This is what I really wanted

  61. rkhayat123 says:

    Hi there,
    How to concatenate two columns that mimic this (N'Doe, John', N'Doctor') where Doe, John is the first column and Doctor is the second column. This (N'Doe, John', N'Doctor') has to be used in SQL and XML. Thanks

  62. Jose says:

    What is my text has a "READY TO LET" text, and I like to join text and formulas like :

    ="INFLATION TO [READY TO LET YEAR] @ 4% ("&I64&" years)", I get this:

    INFLATION TO [READY TO LET YEAR] @ 4% (4 years), but I need this:

    INFLATION TO "READY TO LET YEAR" @ 4% (4 years)

    Would you please let me know how to write this formula?

    Please advise,

  63. Mike says:

    Is there a quick way to build a formula:
    =concatenate(a1,a2,a3,a4 .... a1024)
    =concatenate(a1,b1,c1,d1, ... amj1)
    without typing the addresses one by one ?

    Please note, that the cells a1..a1024, or a1..amj1, contain results of other formulas, so their content varies, and the TRANSPOSE trick seems not to work :-(

    BTW, most of the above internal results will be just empty strings, and the rest will be just one or two letters, so the actual result of the above concatenate will be only 100-200 characters.


  64. Veronica says:


    I need to concatenate a few cells but A2 it's a number 08 and I need the zero in front, but for some reason it's only showing the number 8 alone, same with all the single digits like 4 it should be 04. For the 2018 I need only the 18 but it's giving me the complete year.



    Correct way should be:

    08_04_18 It's the date but in this format.


  65. sunil says:

    Thank You - Wonderful article - its exactly what i wanted.

  66. hanelise says:

    I'm trying to concatenate two columns of data. One contains area codes for phone numbers, and the second column contains the numbers themselves. The problem is that when the phone number begins with a zero, this isn't included in the final concatenated value, resulting in nonviable phone numbers. How can I go about fixing this?

    • Doug says:

      If you want to keep the leading zeros, you just need to format the cells as Text before entering the data. This should be OK for you because when you concatenate the cells they will go to text anyway.

    • Hello, Hanelise,
      If we understand your task correctly, please have a look at our Merge Cells Wizard. It allows you to combine several cells into one without loosing symbols.
      You can install a fully functional 7-day trial version of Merge Cells Wizard and see if it works for you. Here is the direct download link.
      Feel free to contact us again if you have any questions or need further assistance.

  67. m pradeep says:

    I had a Excel sheet which has many columns . Let say A1,D1 and G1 are has to be concatenated.

    A1 has value 134574935
    D1 has date in 03/05/2018
    G1 has date in 05/05/2018

    I want result as
    insert into tablename values('134564935','03-May-2018','05-May-2018');

    Note:- date format has changed and the delimeter in the format has also changed.

    Please help me to solve this . Thanks in advance .

  68. Barbara Rapp says:

    I've used the Concat function and joined three cells successfully. Now, how can I cut and paste the "merged" cells into a word document?

  69. Bruno says:


    I want to limit the content of a cell to the following format:


    How can i do it using Data Validation or any other way?


  70. Prince Adebowale says:

    How do one sum up a value like this 75+17+46+05+28 already in a single cell.

    you find a lot of value like this in a single excel cell, how do one add it up 83+24+32+79+74





  71. Krishnan says:

    How can I combine values from different cells in one column?
    A B C D
    20 50 80 A = 20, B = 50, C = 80

  72. ayesha says:

    how to concatenate different characters within a cell???

  73. Bilal ALi says:

    1 A Banana Closed
    2 B Apple Closed
    3 B Banana
    4 A Apple Closed
    5 A Apple Closed

    Dear Friend, Kindly help me out in above i want a formula in which excel itself concatenate values of column 1 in which all other values are same, like i want answer in one cell like (4,5) , because its other column values A Apple Closed are same.

  74. Sher says:

    Hi there, I've been trying to combine these into one cell without losing the zeros infront of columns C & D but have failed. Can you please help?
    A1 B1 c1 d1
    P HHL 0007040 0114876823
    Thank you!

  75. Shreyasi says:

    Hello I want to use concatenate function
    0000 1 /15-16

    I want 00001/15-16

    I am not getting

  76. Jason Benefield says:

    How do I format after using concatentate using a formula for the two values?
    For example: =concatenate((d3/d4)," / " (d5/d4)) gives values like:
    1.425212521521 / 1.4526265654
    But, I only want these values to be 3 numbers after the decimal. Is this possible if the returned value is a text string?

  77. Michael Allen Kinney says:

    I have a question with what I am finding is a difficult if/then situation.
    Say I have a column with 3 separate values over hundreds of rows: AA BB or CC
    AA is unique but BB and CC ultimately will be the same.
    I need to concatenate 3 cells based off of the above breakdown.
    The first part will be DEF: (with the colon) which is common for all of the outputs.
    The next part will be either GHI:: or JKL:: depending on AA, BB or CC with JKL:: being associated with BB & CC designations.
    Then the last part is a unique number that will be on its own ######.
    The end result will need to be DEF:GHI::###### (AA value) or DEF:JKL::###### (BB or CC value) all depending on the values AA BB CC.

    Keep hitting a wall with figuring out the IF AA then GHI:: portion.



  78. Sam says:

    hi, how i can use concatenate with condition?
    for example i have 2 columns A & B and the condition is if we have same number in column B with different name in column A, and i need to add them in same cell (C).
    do we have i formula?
    A B C
    elie 1 elie,Rita
    Rita 1 elie,Rita
    Joseph 2 Joseph,Noha
    Noha 2 Joseph,Noha

  79. Jim Mausteller says:

    I have a cell (B2). cell value is: SAHANSRA,NAVJOT This is Lastname,Firstname
    I am using: LEFT(B2,FIND(",",B2)-1) and MID(B2,FIND(",",B2)+1,10) respectively to pull the name apart and place them into separate cells.
    What I need to do is place the LASTNAME into a static array with spaces to fill for 30 characters total. The results of the Lastname formula is now in cell N25
    REPLACE(N25,(LEN(N25)+1),(30-(LEN(N25)))," ")
    I need the result of the last formula to look like "SAHANSRAbbbbbbbbbbbbbbbbbbbbbb"
    where "b" is a space (22 of them) I thought this would give me my 22 spaces, but it only gives me 1.
    HELP!! thank you in advance.

  80. Girish Pawar says:

    I want to concatenate column cells from 1 to 5 in such a way that it should neglect the same row cell value. Please refer the following table here data1 to data5 are 5 cells of a column and in front of the cell is the required result of concatenation.
    data1 data2 data3 data4 data5
    data2 data1 data3 data4 data5
    data3 data1 data2 data4 data5
    data4 data1 data2 data3 data5
    data5 data1 data2 data3 data4

  81. Jodie says:

    I really need some help i would like to take several dates MM/DD/YY that are like E2,F2,G2,H2 and so on and have them look like this 01/01/19, 01/02/19, 01/03/19, 01/04/19 is there a way i can do that ??? please help if you can

  82. Sunil says:

    I'm trying to automate something wherein I need to display upper case characters, as in abbreviations or acronyms to be displayed as upper case characters, separated by space.
    For examples, if I enter "IRR" it should display "I R R" in next cell.
    Your help would be greatly appreciated.
    Thank you.

  83. Michael Torrey says:

    I know there is a way to set a fixed cell for concatenation when combining multiple rows and columns of data. I have seen it done, but I can't remember how, and I can't find any examples.
    Here is an example of what I would like to do:
    Column A is the concatenated value
    Column B is a series of Levels starting in Row 2. Level 1, Level 2, Level 3 etc.
    Column C Row 2 has the word MECH
    Column D Row 2 has the word PLAN
    In the end I want Column A to show "Level 1 MECH PLAN" in Row 2, "Level 2 MECH PLAN" in Row 3, etc. How do you write the concatenation formula so that no matter what row it is in, it calls for Column C Row 2 and Column D Row 2, while calling for Column B whatever the current row is.
    Hope this is clear.... Thanks!

  84. scott myers says:

    cell a1 contains the value: 1992 - 1996
    cell b1 contains the formula: =CONCATENATE("=",A1)
    cell b1 displays: =1992 - 1996
    What I want is for cell b1 to now be treated as a formula and compute and show the value: -4
    Can that be done?

  85. rhona says:

    How can I concatenate a sum of different sheet tab?

  86. Jo says:

    I am trying to add +10 in a cell without adding 10 days to it. I need it to show +10:00. Any suggestions how I would do this?

  87. pushpinder says:

    i want to single cell value into multi cell

  88. BS says:

    could you please let me know how to get 300 number of rows data into one cell?

  89. Ram says:

    How to concatenate specific words by excluding some specific words in excel. For e.g. If there are words like : A, B, C, FALSE, D. So how can i concatenate these to get the result as A_B_C_D

  90. Naomi says:

    Im so stumped to what this (below) indicates?
    the formula it is used in is shown below.

    My question is, can i just eliminate the ("="&), i am receiving the same output without it? What does it indicate? If you need more information, i can provide.

    • Naomi says:

      I apologize for the bluntness, thank-you so much for the opportunity to ask the question. This site so informative and helpful in every way. Excel is so challenging but, with your help, it is definitely manageable!

  91. Balabascaran says:

    Hi All,
    I have doubt in & function.
    Plz solve the issue.
    Eg : Invoice No. 8951 in A1 , Invoice date 20-03-2019 in A2 , \ in A3
    If i use & function in Excel, its shows 8951\43544
    my expectation is 8951\20-03-2019
    Is possible in Excel ?
    Plz revert

  92. MR.ANAND RAJ says:

    hi i have two columns with different value , need answer as shown
    a 3
    a 4
    a 5
    b 2
    b 1
    c 3
    C 3
    Need Answer like :
    A 3,4,5
    B 2,1
    C 3,3

  93. Olivia Soliman says:

    Please help for for number to words format using trim (concatenate)
    Ex. 10,000.00 will convert to words is
    *Ten thousand pesos only*
    *Ten thousand pesos and 50/100 only*

    Thanks in advance!

  94. Ag says:

    Please help me with a formula to return value(phone number)(with phone number format)from merged cells in another worksheet.

    IF($A$3="","",CONCATENATE('Work Order'!R4,'Work Order'!S4))

    Thank You!

  95. Muhammad Hasnat says:

    I have 2 thing in a one cell of excel,"Words and numeric" how can i separate numeric and words in other 2 cells of excel,

  96. Sam Daniel says:

    Thanks very much for tutorials, I like to know if there is a way to make just a cell behave as a normal calculator.
    i.e this cell should be capable of summing figures that appears in another cell, while keeping last cumulative figure visible.
    This other cell will be the key-in cell or active cell.
    Cell 1: =2*5, Answer appears in Cell 2,
    Cell 1: =3*6.8, Answer is added to the previous value resulting from (2*5) and still appears in cell 2.

  97. Neli says:

    Hello -
    After I complete a concatenation I would like to delete the source data without affecting the resulting text string. How do I do this?

  98. Martin Bujold says:

    In "Column A" I have a Concatenated Value of "Column B"|"Column C"
    In "Column B" I have a list of Names
    In "Column C" I have a list of Sites
    I want to able to search on the concatenated value but Excel isn't able to find the result when I try to copy & paste...

    | A | B | C |
    1 |Martin|Montreal |Martin |Montreal |
    2 |Jayme|Jamaica |Jayme |Jamaica |

    So if I do CTRL+F and search for "Martin|Montreal" Excel doesn't find it.

    I have tried the concatenate function: CONCAT(A1,"|",B1)
    I have tried simply concatenating the text: (A1,"|",B1)
    I have tried TEXTJOIN("|",FALSE,A1,A2)

    All with the same result, if I search for the string in question or do lookups on the value, it cannot find it?

    Does anyone have any tips on how to concatenate values and be able to use them in VLOOKUP or other lookup functions?

    • Martin Bujold says:

      Sorry it didn't display to good but values are as such:
      Column A: Formula concatenating the strings in column A and B with a "|" separator
      Column B: Martin, Jayme
      Column C: Montreal, Jamaica

  99. Dheepak says:


    I have list of products A to F. If i applied the slicer product A & product B, the table will get filtered with all the records which are having product A & B. However, i need only value of product A & product B and it should be updated with the separation (semicolon).

    I have tried =CONCATENATE(A1,";",A2,";",A3,";",A4,";",A5,";",A6,";",A7,";",A8,";",A9,";",A10) but here unable to check the unique value and its not pulling the filtered columns. Instead all the products from A1 to A10 its getting updated, while only Cell A2, A4 are having product A and A8,A9 are having product B.

    Could you please guide on how to achieve this.. Thank you once again..

Post a comment

Thank you for your comment! When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to your query. We cannot guarantee that we will answer every question, but we'll do our best :)