Jul
15

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 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.

Concatenating the values of several cells

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

=CONCATENATE(A1, B1)

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(A1, " ", B1)
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

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:
=A1&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

=CONCATENATE(A1, CHAR(47), B1)

=CONCATENATE(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:

=CONCATENATE(A1, A2, A3, A4)
or

=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:

  • Select a cell where you want to enter the formula.
  • Type =CONCATENATE( in that cell or in the formula bar.
  • Press and hold CTRL and click on each cell you want to concatenate.
  • 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.

  • Select the cell where you want to output the concatenated range.
  • Enter the TRANSPOSE formula in that cell, =TRANSPOSE(A1:A10) in this example.
  • In the formula bar, press F9 to replace the formula with calculated values.
  • Delete the curly braces that turn a usual Excel formula into an array formula. As a result, you will have all the cells references to be included in your concatenation formula.

    Use the TRANSPOSE function to get the range

  • Type =CONCATENATE( in front of the cell references in the formula bar, type the closing parenthesis 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"))

or

="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 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 download a fully functional trial version. And if you are happy with the result, you may want to buy helpful tool as a separate product or as part of our Ultimate Suite for Excel, which includes 40+ other time-saving tools for most common Excel tasks. Either way, we will happily offer you the 15% off coupon code that we've created especially for our blog readers: AB14-BlogSpo.

If someone wants to examine the formulas discussed in this tutorial more closely, the Sample workbook with concatenation formulas is available for download. Thank you for reading!

161 Responses to "CONCATENATE in Excel: combine text strings, cells and columns"

  1. Sarah says:

    How do i find identify unique value of a cell with concatenated values.
    E.g.
    Column A
    10, 10, 10
    10, 20, 30
    10, 30, 20
    10, 20, 30
    40, 40, 40

    How do i get results show the following unique concentrated values:
    10,,
    10, 20, 30
    10, 30, 20
    10, 20, 30
    40,,

    • Hello, Sarah,

      Sorry, it's difficult to give you an exact formula without seeing your workbook. Please try the following one, it may help:
      =IF(AND(C6=D6;C6=E6);C6;CONCATENATE( C6;D6;E6))

      • Vijaykumar Shetye says:

        Dear Sarah,
        Use the formula,
        =IFERROR(MID(TRIM(A2),1,FIND(",",TRIM(A2),1)-1)&IF(MID(TRIM(A2),1,FIND(",",TRIM(A2),1)-1)=MID(TRIM(A2),FIND(",",TRIM(A2),1)+2,FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)-FIND(",",TRIM(A2),1)-2),",",", "&MID(TRIM(A2),FIND(",",TRIM(A2),1)+2,FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)-FIND(",",TRIM(A2),1)-2))&IF(OR(MID(TRIM(A2),FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)+2,LEN(TRIM(A2))-FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1))=MID(TRIM(A2),1,FIND(",",TRIM(A2),1)-1),MID(TRIM(A2),FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)+2,LEN(TRIM(A2))-FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1))=MID(TRIM(A2),FIND(",",TRIM(A2),1)+2,FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)-FIND(",",TRIM(A2),1)-2)),",",", "&MID(TRIM(A2),FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1)+2,LEN(TRIM(A2))-FIND(",",TRIM(A2),FIND(",",TRIM(A2),1)+1))),"")

        It will accept up to 3 numbers of any number of digits in cell A2.
        Change the cell reference as required.
        If numbers are always confirmed to be of 2 digits, then the length of the formula can be significantly reduced.

        For a seried of 10, 10, 20,
        the result will be 10,,20

        Kindly confirm if you need any changes.

        Vijaykumar Shetye, Goa, India

        Vijaykumar Shetye, Goa, India

    • santhosh says:

      three steps:

      first you seperate the values by "," by using text to columns option.

      then values will be

      10 10 10
      10 20 30
      10 30 20
      10 20 30
      40 40 40

      then use true or false like =10=10 for first two and same thing to next
      remove all true values then concatenate by using ,

      I think this my help

  2. eli.f says:

    Hi

    I have
    Total time (Outgoing Calls) 
    01h. 48m. 41s
    00h. 50m. 04s
    00h. 41m. 27s
    01h. 10m. 21s
    01h. 23m. 36s
    00h. 45m. 21s
    03h. 14m. 30s
    02h. 03m. 43s
    00h. 50m. 54s

    which I use CONCATENATE(LEFT(K10,2),":",MID(K10,5,3),":",MID(K10,10,3))
    and created
    time
    01: 48: 41
    00: 50: 04
    00: 41: 27
    01: 10: 21
    01: 23: 36
    00: 45: 21
    03: 14: 30
    02: 03: 43
    00: 50: 54

    NOW , My problem is that I want to use Conditional formating >> color scale
    and it doesn't color the area
    I have tried:
    1. formating the area as time but it doesn't work
    2. copying the data to notepad and back and it worked

    but I dont want to do it every time

    I understand that it consider this data as string

    Do You have an Idea, How to solve it ?

    Thanks
    Eli

  3. Ali Usman says:

    Its very helping...thanks

  4. rishab says:

    I have a question. I have data with column A having a ID's and col B having details. I want to combine ID with Details
    example
    ID Details = result needed in one cell
    1 ABC 1 - ABC - XYZ
    1 XYZ

    the data has multiple IDs and dynamic number of details in rows. Some ID may contain 1 details and some may contain upto 19 details . I want every ID to have their unq details in One cell

  5. Stephen Leaphart says:

    Can you show me how to use the CONCATENATE function and the VLOOKUP function together for a person's first and last name?

    • Hello Stephen,

      You can put it as simply as:

      =CONCATENATE(VLOOKUP(), " ", VLOOKUP())

      Where the first vlookup gets the first name, and the second - the last name. You insert " " in between to separate the parts of a name with a space.

      A real-life formula may look similar to this:

      =CONCATENATE(VLOOKUP(E2,$A$2:$C$10,2,FALSE), " ", VLOOKUP(E2,$A$2:$C$10,3,FALSE))

      Where E2 is the lookup value (some unique identifier like security numbers, which are in column A), column B is the first name and column C is the last name.

  6. Nazim Saeed says:

    31101-5982071-7 RIZWAN ALI SHAH SAYED MUHAMMAD ASLAM
    PARVEZ
    Ph: 03333512564 Address : AZIZ STREET URDU
    ROAD H # 109 BAHAWALNAGAR
    1
    31101-1601721-9 MUHAMMED IJAZ MUHAMMED YAR Ph: 03027850271 Address : BASTI MAHARAN KOT
    FATEH BWN
    2
    31101-8058988-7 ABDUL QAVI KHAN ABDUL HAI Ph: 03007582490 Address : H.NO.239 STREET NO.2
    TAKVA COLONY BAHAWALNAGAR
    3
    31101-4402145-7 MUHAMMAD RIAZ JAN MUHAMMAD Ph: 03046191688 Address : BASTI DARBAR BAGH
    WAN RAMZAN LANGHA BAHAWALNGAR
    4
    31101-1653950-5 KHALID MEHMOOD MUHAMMAD YAQOOB Ph: 03007580790 Address : STREET NO.5
    FAROOQABAD SHARKI BAHAWALNAGAR
    5

    hello, i have the above mention data, i want to write in one line, in some total data contain in two lines some where in three, how i can join two or three lines in one line?

    • Hello, Nazim,

      Most likely a macro is needed in this case. Sorry, we cannot help you with it.

      • Vijaykumar Shetye says:

        Dear Nazim,
        Use the formula below. Read the instructions below the formula.

        =IFERROR(INDEX($A$1:$A$500,MATCH(ROW()-5,$A$1:$A$500,0)+1,1)&"; "&INDEX($A$1:$A$500,MATCH(ROW()-5,$A$1:$A$500,0)+2,1)&IF(MATCH(ROW()-4,$A$1:$A$500,0)=MATCH(ROW()-5,$A$1:$A$500,0)+3,"","; "&INDEX($A$1:$A$500,MATCH(ROW()-5,$A$1:$A$500,0)+3,1))&IF(MATCH(ROW()-4,$A$1:$A$500,0)=MATCH(ROW()-5,$A$1:$A$500,0)+4,"","; "&INDEX($A$1:$A$500,MATCH(ROW()-5,$A$1:$A$500,0)+4,1))&IF(MATCH(ROW()-4,$A$1:$A$500,0)=MATCH(ROW()-5,$A$1:$A$500,0)+5,"","; "&INDEX($A$1:$A$500,MATCH(ROW()-5,$A$1:$A$500,0)+5,1)),"")

        (1) You have mentioned that there are either 2 or 3 lines, but your data is actually having up to 4 lines. My formula will work for up to 5 lines of data.

        (2) I have copied your data to cells A2 to A30. Increase the cell references as required. Add a zero in cell A1, above the data or else the length of the formula will increase.

        (3)I have entered the formula in cell B4, and dragged it down. In case you need to put it in some other cell, then let me know.
        The values row()-5 and row()-4 have to be changed.

        (4)We can make the formula shorter if we insert a number row 1,2,3,.. to the left of the formula.

        (5) I have used text separator semicolon ";" and a single space to separate the data between different lines. This can be changed or eliminated if required.

        (6) There are 2 different spellings Bahawalnagar and Bahawalngar in your data. I am not finding Bahawalngar anywhere on the internet. If it is a spelling mistake, then you can correct it in you data.
        Select the data, go to Home - Find and Select - Replace.
        In Find What, type Bahawalngar.
        In Replace with, type Bahawalnagar
        Select Replace All. All Entries of Bahawalngar will get corrected to Bahawalnagar.

        DO let me know if any changes are required.

        Vijaykumar Shetye, Goa, India

  7. Joshua says:

    Is there a way to do this and search across a range and match the concatenate based on entries laterally in other columns?

    Mr/Ms/Mrs Name Location

    How do I get the formula to look through the range of location and another range of information (not able to be seen on this post) and on another sheet to input
    "Driver: Mr. Jones" into the determined cell? I am trying to figure this out and I'm pulling my hair out

  8. PRAVEEN says:

    How do i find identify unique value of a cell with concatenated values.
    E.g.
    A B C
    10 10 10 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,10,10
    10 20 30
    10 30 20
    10 20 30
    40 40 40

    How do i get results show the following values:
    10 10 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,,10
    10 20 30 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,20,10
    10 30 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,30,

    ABOVE IT IS SHOWING COMMA IN BETWEEN TWO VALUES OR AFTER. I DONT WANT THE COMMA WHERE THE VALUE IS NOT THERE

  9. James says:

    Hey, I'm trying to use different cells to input the row and column to call on a specific cell.
    So like G4=C and G5=5 and I want them to combine to point to cell C5 and output whats in C5, Can I use this or do I need another method?

    • Hi James,

      In this case, you can use the INDIRECT function, e.g.:
      =INDIRECT(G4&G5)

      • artu says:

        Hi Sevtlana, how are you?
        I entered G4=C, G5=5, =INDIRECT(G4,G5)
        here is the result: #REF!
        in other case, #VALUE!
        Any help? : )
        - artu

        • Vijaykumar Shetye says:

          Dear Artu,
          The formula that has been given to you is =INDIRECT(G4&G5),
          and you have changed it to =INDIRECT(G4,G5).
          The syntax you have used is wrong. The formula will not for the way you want it to.

          Please use it correctly.

          Indirect function returns the reference specified by a text string.

          Vijaykumar Shetye, Goa, India

  10. yatish says:

    What is the process of combining text within a fourmulae called. Please name in one word

  11. yatish says:

    What is the error displayed data is not entered in the fourmula and it is executed.

  12. IMRAN AZIZ says:

    columnA Coloumn B Example
    Name DIFFERENT Mobile nO oF same PERSON
    John 9856565132
    Jack 5616546511
    Moses 4456456466
    lee 4964895116
    Jacobs 4565515156
    John 8944988941
    Jack 4984512984
    Moses 5115619851
    lee 5985947894
    Jacobs 5158648998
    Jack 4989899999
    Moses 4944988916
    lee 8894498994
    Jacobs 9889449984
    JOHN 5498416516

    BUT I WANT THIS LIKE THAT
    SEE:
    NAME MOBILE-1 MOBILE-2 MOBILE-3
    John 9856565132 8944988941 5498416516
    Jack
    Moses
    lee
    Jacobs
    PLEASE HELP ME BY USING FORMULA

    • vijaykumar shetye says:

      Dear IMRAN AZIZ,
      Follow the below mentioned steps to get your work done.

      (1) Copy the existing data in cells B1 to C15.
      In cell A1, enter the below formula and drag it down.
      =B1&" "&COUNTIF($B$1:B1,B1)
      The data in column A will be John 1, Jack 1, ...

      (2) Copy the names in column B.
      Paste the names in cell A18.
      Select the names in cells A18 to A32.
      Go to Data - Remove duplicates and remove all the duplicate values.

      (3) In cell B18, enter the formula
      =IFERROR(VLOOKUP($A18&" "&COLUMN()-1,$A$1:$C$15,3,FALSE),"-")
      Drag this formula to the right. If a person has 10 numbers, drag it upto 10 columns to the right.
      Change the cell references as required. I have started in column 2, so the formula contains the part COLUMN()-1. If you start at column 5, then change this part to COLUMN()-4.

      Vijaykumar Shetye, Goa, India

  13. uc says:

    Excellent. was very helpful to me

  14. Chelsea says:

    Hello!

    I have a list that was sent to me with addresses listed.

    A2 - Name B2 - Street B2 - City D2 - State E2 - Zipcode.

    Can I use concatenate to formulate it into one cell as following?

    Name
    Street
    City, State, Zip

    Thank You?

  15. Jim says:

    Hi Svetlana,

    Can I please check with you if CONCATENATE formulas can be used with IF?
    I have a list of employees with their departments and other details. What I'm trying to do is to amalgamate all employees of each department into one cell separated by a comma. Employees names are in column B and departments' names in column D.

    Many thanks for your help.

    J

    • Hi Jim,

      Sure, you can use CONCATENATE together with IF. However, I cannot think of any formula that handle your task. This can be done with VBA code, or you can try our Combine Rows Wizard for Excel.

      • Vijaykumar Shetye says:

        Hi Jim,
        Use the below formula
        =CONCATENATE(TRANSPOSE((B3:B10)&IF(LEN(B3:B10)>1,"-","")&D3:D10&IF(LEN(D4:D11)>1,"-","")))

        But, before clicking enter, select the Transpose part
        TRANSPOSE((B3:B10)&IF(LEN(B3:B10)>1,"-","")&D3:D10&IF(LEN(D4:D11)>1,"-",""))
        and click F9
        Then click Enter.

        I have use B3 to B10 and D3 to D10 as the cell references. Change them as required. In case cells are empty, the result for those cells will be blank.
        I have used "-" and "," as the text separators for the names and departments.

        Do inform me if any changes are required in the formula.

        Vijaykumar Shetye, Goa, India

  16. Jillian says:

    I keep getting an error when trying to use this formula for concatenate and I can't figure out what's wrong. I'm trying to combine written text and also pulling in information from other cells. Please help!

    =CONCATENATE(“Blank company currently has a position available for a ” ,H1, “ traveling nurse. This assignment is for an immediate start with a reputable facility seeking an experienced RN to fill a ” ,N1, “ contract in their intensive care unit. At Blank Company our Nurses comes FIRST! We pride ourselves in the commitment to our nurses! We have a dedicated, experienced team of industry leading healthcare recruiters to support our partnered nurses with 24/7 support. Our experienced recruiters get to know you to ensure the best placements are the best fit for you! We treat you like you're part of our Blank Company family. We value your compassion, dedication and knowledge in the healthcare industry! Your career is our focus; so let Blank Company be the gateway to your future opportunities! Apply today! Blank Company an Equal Employment Opportunity Employer.”)

  17. Chalo says:

    I want to Concatenate the numbers below, to create this format 55-19-00-0-007-00-00 but when I run the formula, this is the result that I get 55-19-0-0-7-0-0. Is there a way to keep the "00" and the "0" before the numbers after running a formula?

    A B C D E F G
    55 19 00 0 007 00 00

  18. lbg says:

    column A has a patient number and column b has a date of procedure
    some patients have more than one procedure but i want to have each patient to have a separate identifier ... how can i do this?

    for example i want to make a column where patients with 1D 123 = 1, and patients with ID 124 =2
    then i want to make a column next to it that orders the procedures based on the dates for each unique patient. so if column A is patient 1, then column B, should have 1, 2, or 3 based on the order of procedure.

    patient ID date of procedure
    123 1/6/08
    123 5/6/09
    123 10/8/13
    124 9/4/09
    124 8/10/12
    125 3/31/08
    125 7/28/11
    125 8/1/12

    i want it to look like this to the left of the above data on my excel sheet
    1 1
    1 2
    1 3
    2 1
    2 2
    3 1
    3 2
    3 3

  19. gagan says:

    want A column value in C column if B column have yes word in google sheet ..

    for ex:

    A column --- B column ----- C column
    1 --- yes ----- 1
    2 --- -----
    3 ---- -----
    4 ---- yes ----- 4

    i try using this formula =IF(SEARCH("yes",B1), CONCATENATE(A1, " "), "")

    and it works but i want to show C column values in other sheet like in one sheet i have two sheets .. Sheet1 have these A column and B column values .. and i want to use this formula in sheet2 to get this result but its not work .. can you please help me in this and one more thing can i use it like " =IF(SEARCH("yes",B1:B), CONCATENATE(A1:A, " "), "")" i mean rang , i dont wont to run this manually every time when i insert new value in a column and in b column . rang define and it will do the rest automatic in sheet2 .. i hope you understand my question .. thanks

    • Rosebud says:

      Hi, your logical statement in the IF function does not return a boolean value which is why it seems that your calculation is not working. You should make the formula like this:

      =IF(ISNUMBER(SEARCH("yes",B1:B)), CONCATENATE(A1:A, " "), "")

  20. Brent says:

    I am trying to use Concatenate or & to combine contents of column items in a row. I can get that to work, but if I drag the formula down it only shows the output value of the first cell. It doesn't recognize the formula as a formula where the cells are colored, (the relative cell ID changes correctly, however.) The only thing I have found to fix this is to click on each cell with the formula and then click in the function bar then the cells in the formula "color themselves" and then the output value is correct.

    Example of What I Get:
    INPUT | FORMULA | OUTPUT
    A B C | |
    1 R T Y | =A1&B1&C1 | RTY
    2 F G H | =A2&B2&C2 | RTY
    3 V B N | =A3&B3&C3 | RTY

    Example of What I Think I Should Get:
    INPUT | FORMULA | OUTPUT
    A B C | |
    1 R T Y | =A1&B1&C1 | RTY
    2 F G H | =A2&B2&C2 | FGN
    3 V B N | =A3&B3&C3 | VBN

    • Brent says:

      I figured it out... These are static formulas. I changed the Calculation Option to Automatic and it fixes it.

  21. Tammy says:

    Hi

    I want to concat values in 2 different cells and then copy down, but when copying down, i want to keep 1 of the cells the same.

    Example:

    =CONCATENATE(B5,D2), =CONCATENATE(B6,D2), =CONCATENATE(B7,D2), etc...

    but when i copy down, excel automatically changes it to =CONCATENATE(B6,D3), =CONCATENATE(B7,D4), etc...

    Anyone knows how I can get this to work?

    Thanks!

    • Scott says:

      Tammy - you can add an absolute reference around whichever field you want to be constant by simply adding two $ signs:
      Ex: from you formula above - =CONCATENATE(B5,$D$2) which you can then auto-fill the rest of the way down.

  22. Praveen Kumar says:

    Hi Svetlana
    How do i find or identify unique value of a cell with concatenated values.
    E.g.
    A B C
    10 10 10 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,10,10
    10 20 30
    10 30 20
    10 20 30
    40 40 40

    How do i get results show the following values:
    A B C
    10 10 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,,10
    10 20 30 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,20,10
    10 30 =CONCATENATE(A1,",",B1,",",C1) RESULTS 10,30,

    ABOVE IT IS SHOWING COMMA IN BETWEEN TWO VALUES OR AFTER. I DONT WANT THE COMMA WHERE THE VALUE IS NOT THERE

  23. Jim Pakos says:

    Hi
    I have a column with codes like this 100026 and i need to split them like this 10-00-26 how can i use concatenate?

  24. Angelo Biasi says:

    I'd like to concatenate several value from cells taking the first letter.number.roman_numeral from each of three cells and populating it into one cell, less the parentheses, and adding a period.

    I want to get to this value in a new cell in a new column:
    "1.A.iii"

    taken from the following cells / columns:
    Cell (column) A: "(1) Copy goes here, copy goes here, Copy goes here."
    Cell (column) B: "(A) Copy goes here, copy goes here, Copy goes here."
    Cell (column) C: "(iii) Copy goes here, copy goes here, Copy goes here."

    I used =CONCATENATE(LEFT(A2,3),LEFT(B2,3),LEFT(C2,5)) which works for extracting the first x number of characters from each and combining it, but my output looks like this: "(1)(A)(iii)" (close but no cigar)

    I'd like to now:
    1. remove the parenthesis and add periods
    2. Allow this to work for other cells that have less or more characters than "iii" such as "i" or "xviii", respectively.

    Any help is greatly appreciated. Thank you in advance!
    Angelo

  25. Liz says:

    How do I concatenate, when one of the cells I am trying to use is a formula?

    For example (simplified), cell A1 is =NOW() which is showing the month we are currently in. I then want to concatenate this with cell B1 which is just text.

    When I use write the formula =CONCATENATE(A1,B1) I get this as the result 42450.4964960648exampletext where I actually want it to say Marchexampletext

    I do not want to copy and paste the month as text, and I do not want to use VBA/macro.

    Does anyone know how to do this?

    • Hi Liz,

      One possible way is to concatenate the function. For example:
      =CONCATENATE(TEXT(TODAY(), "mmmm"), "text")

      The result of the above formula will be "Apriltext".

      To make the output better readable, you can include some separator like "-":

      =CONCATENATE(TEXT(TODAY(), "mmmm"), "-", "text")

      Another way is to reference the original cell with your formula. But again, you need to specify the format of the text value you want to return. In this example, "mmmm" is the full name of the month:
      =CONCATENATE(TEXT(A2, "mmmm"), "text")

      Because in the internal Excel system dates and times are stored as numbers, you cannot simply concatenate cells with NOW() or TODAY() functions.

      You can learn more about Date and Time formats in this tutorial:
      https://www.ablebits.com/office-addins-blog/2015/03/11/change-date-format-excel/

  26. Seiha says:

    I have a question related to the text combination with two different sheet.

    Example:
    CODE DESCRIPTION
    10001 THC
    10001 OCF
    10001 AGENCY
    10002 THC
    10002 DOC

    The result should be for another sheet
    CODE DESCRIPTION
    10001 THC,OCF,AGENCY
    10002 THC,DOC

    Can you share me how to solve this problem?

    • alex says:

      Hi,

      I'm after a solution like that as well.

      Example:
      CODE DESCRIPTION
      10001 THC
      10001 OCF
      10001 AGENCY
      10002 THC
      10002 DOC

      The result should be for another sheet
      CODE DESCRIPTION
      10001 THC,OCF,AGENCY
      10002 THC,DOC

      Can you share me how to solve this problem?

      Many thanks

  27. venkat says:

    Hi,
    i need only pass the value 192379 from another cell, can you help me to, parameter for this scenario.
    {
    "Value":"192379",
    "RetrieveFields":"T"
    }

  28. Amy says:

    How do you then remove the formula, so you can copy and paste this data into another worksheet? When doing so, I get an error value in the cells.

  29. Kelli says:

    I'm using a CONCATENATE formula and it's working fine. But is there a way to carry over the formatted text. ex. 1 cell has text in red and/or strike through. Is there a way for this cell to be included but maintain the text formatting?

  30. jessica says:

    Hi,

    I want to format/custom the following data:

    E101-i
    E1-j
    E1-a
    E201-d

    So, I want to fixed the "E" and "-"with different numbers(up to 3 digit) and end with 1 alphabet

    • Vijaykumar Shetye says:

      Dear jessica,

      Go to Home - Number - Category - Custom - Type - "E"###"-d"

      If the letter changes depending on the content of some other cell, then,
      Go to Home - Conditional Formatting - New Rule - Use a Formula to determine which cells to format -
      In Format values where this formula is true, enter the formula
      =IF(A1="d",1,0)
      Select Format - Number - Custom Format
      Select the required Custom Format.

      You can create multiple Custom Formats and enter the required formulas. Change the cell references as required.

      Do let me know if any changes are needed.

      Vijaykumar Shetye, Goa, India

  31. Rudra says:

    In ms excel:
    Suppose I have this data

    jan feb mar
    1991
    1992
    1993
    1994

    and I want to create a table as below:

    jan feb mar
    1991 jan1991 feb1991 mar1991
    1992 jan1992 .....
    1993 .......................
    1994 .......................

    What should I do?

  32. Rajiv says:

    How to merge/concatenate first column with single cell(second row's first column) only?

    A B C

    A 1 A1
    B B1
    C C1

  33. Nagaraj says:

    I have the below data in singe cell,

    62 F1 11 43 50 4C 41 2D 31

    i need to split the same value in to different cell.

    can u pls some on suggest me to solve this..?

    • Vijaykumar Shetye says:

      Dear Nagaraj,

      Select the required cells (only in one column at a time)
      Go to Data - Text to Columns - Delimited - Next -
      Select Space as the delimiter.
      Click Finish.

      If the data has to be converted vertically, then use.
      Home - Paste Special - Values - Transpose
      Select Values and Transpose
      Click OK.

      Vijaykumar Shetye, Goa, India

  34. Clayton says:

    When I try to concatenate 2 or 3 text cells - the formula sometimes displays all the way down the column - not the merged text - does not happen all the time - usually I can drag the merged text to fill the column. How do I get the text to display rather than the formula?
    Ex =CONCATENATE(z1," - ",aa1)

  35. Gopinath R says:

    Hello hai,
    I would like to know what are the methods or tricks to get outputs without using formula(i.e.CONCATENATE replace of "&"). Still i am in LKG level in excel.

  36. JCB says:

    Hi, for your assistance. i need this format
    One Thousand Dollars ($1,000.00)
    My data is just the amount in figures, then I use the spellnumber to convert the figures to words. The problem now is how to concatenate the words then the figure but figures should have the comma/s. Please help. Thanks.

  37. Camilla M says:

    Hello!
    Is there a way of creating a formula able to concatenate until find a specific text?
    I have a table (a pivot table) and I want to concatenate the information of one of the columns. But I need the Concatenate function to stop working when it finds the text "Grand Total", because this is the last information and I don't need it to be concatenated.
    Thanks,
    Camilla

  38. Gupta says:

    Hello Guys,

    I want to bring all values in a column into one cell for a corresponding common value in other column.

    Example:
    ColA ColB
    X 1
    X 2
    X 3
    Y 7
    Y 8
    Y 9

    Result should be look like -

    Col-1 Col-2
    X 1,2,3
    Y 7,8,9

    Thanks,
    Gupta.

  39. shankaran says:

    i want to remove one particular name if it is present in the row while concatenating

    example
    albert
    balard
    john
    sarah
    albert

    result : albert balard john sarah albert (But i need to remove albert name while concatenating)

  40. John Bailey says:

    Hi,
    I have 2 values in 2 cells that I use to calculate a value i.e. £2,099,000 x 50%

    I want to be able to display each value in a cell as a sum for the purpose of reporting.

    If I use =CONCATENATE("£",B5," x ",TEXT(B7,"0%"))
    I get a return of £2099000 x 50%

    However, I want the £2099000 to be displayed as £2,099,000.

    If I use =CONCATENATE("£",TEXT(B5,"#,##0")) I get the desired result in isolation.

    How can I combine the following to get the required result:
    =CONCATENATE("£",TEXT(B5,"#,##0"))
    =CONCATENATE(TEXT(C7,"0%"))

    What am I missing?

  41. Arun Prakash says:

    Hi,
    Am trying to create a production planning sheet where I have to provide data with comma separators for the values for convenient reading.

    When I use concatenate function I cannot get the commas in the middle.

    When I use the function it return 100000 Mtrs/Day Where areas I require it as 1,00,000 Mtrs /Day.

    Is there any function to do it ?

    Please help.

    • Arun,

      I am afraid it's not possible. The display representation of cell values is controlled by the format applied to a given cell. If you had a regular number, it would be sufficient to check the "Use 1,000 separator" box in the Format Cell dialog. However, the result of the Concatenate formula is an text string, and Excel cannot insert a thousand separator there.

  42. Prakash Kejriwal says:

    How can i print the report as given below

    Source
    RAJA 500 3
    RAJA 300 4
    SHYAM 200 5
    SHYAM 300 4
    SHYAM 100 3
    VENU 200 4

    RESULT
    RAJA 500/3, 300/4
    SHYAM 200/5, 300/4, 100/3
    VENU 200/4

    Please reply

  43. harish says:

    Hi,
    Please share how can we concatenate list of cells values with comma, like A,B,C
    Table
    P2-G021
    P2-6704
    P2-3045
    P2-I172
    P2-6056
    P2-I046
    P2-1582

    Thanks
    Harish

  44. redwgngal says:

    How do I take a column of numbers and put it in one cell separated by commas.

    (123,234,345,456,678) I want this result

  45. goutam banerjee says:

    We maintain medical equipments purchase, sales, stock sl.no. wise. Example of sl. No.is ASHD-7891, ASDG-2367 etc. How advance excel recognize these sl nos

  46. Deepak says:

    hi,
    i want to add rows having same names for ex
    columnA columnB
    A 1
    A 2
    A 3
    B 1
    B 2
    C 1222
    C 2121

    Which formula is usefull for this??

  47. srinu says:

    thankyou sir

  48. farhan khan says:

    hi
    im having an issue using a formula on a multiple cells
    like i want to get a text when i put something in a multiple cells

  49. Sarah says:

    Hi there, I'm trying to Concatenate two cells but my formula cell just displays the formula not the answer. Cell F23 has 'KM 11510', Cell G23 has 'Sheet Music and Document Holder'. I used the function library and the Function Arguments show the Formula Result = 'KM 11510 Sheet Music and Document Holder', which is what I want. But when I press OK, the field shows =CONCATENATE(F23," ",G23). I have checked that Calculation Options are on Automatic. I've tried switching it to manual and back, I've tried saving and re-opening. any suggestions? Thanks very much.

  50. sanjay says:

    I have a doubt with concatenate with time, fr example i have abc123456 in A1 and 4.00 PM in B1 so if i use the formula the time changes to 0.666667. can you help me with that.

  51. jonyhart says:

    hi
    my doubt is ,if i can use concatenate for the below data ,
    SL NO NAME DOCS TO BE TAKEN OUTPUT SHOULD BE
    123 HARI SALARY SLIP SALARY SLIP,MARKSHEET EXP CERT
    123 HARI MARKSHEET
    123 HARI EXP CERT
    124 TIM SALARY SLIP SALARY SLIP, EXP CERT
    124 TIM EXP CERT
    125 LOGAN SALARY SLIP SALARY SLIP

  52. Mervyn Venter says:

    Hi, Hope you can help

    I have Column A and Column B
    in Column A, I have A1 to Axx
    In column B , I have B1 to Bxx

    I need to create a list something like this

    A1:B1 A2:B2 A3:B3......Axx:Bxx

    So I can use something like this

    =CONCATENATE("List ",B1,":",D1," ",B2,":",D2," ",Bxx,":",Dxx )

    My question is, how can I enter all the cells in the column easily?

    Thanks in advance

  53. harish says:

    Hi

    I'm combining two cell using formula CONCATENATE. first cell contains different formats in single cell i.e. CYBER-METRIC and ARIAL. other cell has text content.

    final Result is changing the whole content into ARIAL format.
    we need text to be just the same as cell1 with mix of different format (i.e. Both cyber-metrics & Arial in single Cell).

    Please tell whether it is possible or not.

  54. Azeem says:

    hi All,

    How to convert 3-10-10-10-10001 In 310101010001. ?

    Please Help

    • Hello Azeem,

      You can use Excel's Find and Replace feature (Ctrl+H) and replace dashes with nothing, i.e. you type a hyphen (-) in the "Find what" box, leave the "Replace with" box empty and click Replace All.

  55. Asmiza says:

    A1 B1
    Aug-16 BR BANDAR

    How do I combine both of above cells (A1 & B1) into "Bandar August-16" by dropping the word "BR" ?

    • Hi Asmiza,

      Does A1 contain a date in the mmm-dd format or text "Aug-16"? You can check this by selecting cell A1 and viewing the value in the formula bar.

      If it's a date, you can use the following formula:

      =TEXT(A1, "dd-mmmm") &RIGHT(B1,LEN(B1)-SEARCH(" ",B1)+1)

      If it's a text, then use this one:

      =A1 &RIGHT(B1,LEN(B1)-SEARCH(" ",B1)+1)

  56. Rajkumar Ghosh says:

    Sir,
    May I apply concatenate formula for more then 1000 cell.

  57. Sherri Roy says:

    Please Somebody tell me I need formula i want that Suppose any mathematics digit add in any person name how can i get any mathematics digit add in any Person name to apply by formula.

  58. dm says:

    What do I write, if I want to have the output from referencing a large amount of cells, like =CONCATENATE(S33:S94), but I want a " " between each of the cell values?

    • In this case you should reference each cell individually and insert spaces in between, like this:
      =CONCATENATE(S33, " ", S34, " ", S35, " ", ..., S94)

    • M says:

      If you have too many values this would take forever. I found an easier solution. I had to merge the values of 2000 cells down a column, say column B, into one cell with a | between each value. Listing 2000 cells individually would have taken forever.

      In C2 I put the formula =CONCATENATE(B1&"|"&B2)
      Then, in C3 I put =CONCATENATE(C2&"|"&B4)
      Copy the 2nd formula down as far as you want. In a moment I ended up with cell C2000, that had 2000 values all in one cell separtaed by |.

  59. jheng says:

    How do I combine if i have a multiple rows like this

    9005a
    9006a
    9007a
    9008a
    9010a
    9011b
    9032c
    9033a
    9034a
    9035a
    9113b
    9114a

    I want the result to be like this
    9005a thru 9008a, 9010a, 9011b

    but i only have limited number characters lets say i only have 50 characters. and the following series of numbers should be on the next row above the first result. it shows like this,

    Row 1 : 9005a thru 9008a, 9010a, 9011b
    Row 2 : 9032c thru 9035a,9113b, 9114a

    and there should have ni repeatetive number.

    Thank You in advance!

  60. jane v. jali says:

    JUVITA F. RENDIZA in 1 column.. i would like to separate then in each column for Last name- Firtsname- Middle Name.. pls give me the formula

    lots of thanks

  61. Moses says:

    I have this data. May I know how can I achieve the results in column C by input (what) formulas? Thanks alot.

    A B C
    Name Code Formulas Results
    P1 002 002, 003
    P1 003
    P2 004 004, 006, 007
    P2 006
    P2 007
    P3 005 005, 008
    P3 008

  62. Richard says:

    Dear all,

    it is possible to "force" Excel in some way, to count with the string, constructed by CONCATENATE, as the function?

    For explanation - I have this data: CONCATENATE(„=“;“1″;“+“;“1″) and I need the result to see as "2" and not only as "=1+1"

    Any idea?

    Thanks for your answer in advance!!!

    • Hi Richard,

      For this, use the embedded SUM function like this:

      =CONCATENATE("=";SUM(1+1))

      • Richard says:

        Hi Svetlana, yes, it count the embedded numerical example, but the result is still the string in the shape "=2". I need some solution, where the result is not a string, but the completely counted function (i.e. only "2").

        In real, I have a little bit complicated data in my sheet, "1+1" is only example for easy explanation of my problem.

        • Richard,

          The result of the Concatenate function is always a text string. If you want to return a number, use SUM or SUMIF function, or a combination of Sum functions. It's not possible to advise an exact formula without knowing the details of your task.

  63. Ian says:

    Hi

    On one tab I have 2 rows of columns, 1 is an ID number and the other a simple yes or no response.

    I only want to concatenate the results of those who's answer is No to another tab (lets say from tab B & tab A)

    My range of ID's is B6:B35 and responses of Yes/No is K6:K35.

    Each time I do this I am getting all ID's coming through so I'm not sure how to exclude these in a formula. I'm not experienced with macro's so that won't be an option if that's the only way to do it.

    If it can't be done in one formula then that my next option is to create and hide a column on tab B that shows relevant ID's based on an IF function so that if there is no way to concatenate all values individually across two columns, I will be able to get the ones I need from one column. I'm just wondering there's a tidier way (hope that makes sense).

    Thanks in advance.

    Ian

  64. Ian says:

    Re:above

    I should have said I only want to concatenate the ID numbers based on the ones who said no.

  65. sumardy says:

    Hello

    If someone can help to take out and flight and combine the total sum of each destination

    1.FEBRIANA/SALSABILA MS F BWN BKK YO A 051H I-BI796 SUB
    1PCS 10KG

    2.HABTESELSSIE/MELA MISS F BWN BKK YS A 049C I-BI828 BKI
    1PCS 11KG

    3.ISKANDAR/FRANS HUBE MR M BWN BKK YQ A 030A I-BI796 SUB
    M 2PCS 20KG

    4.KUSUMADEWI/LANYAWA MRS F BWN BKK YQ A 030B I-BI796 SUB
    H 2PCS 20KG

  66. Sukhbir Singh says:

    I was wondering if there is a way to concatenate based on if function.
    Please see below.
    Thank,

    Input
    Class 1 Class 2 Class 3
    Person 1 x x
    Person 2 x x
    Person 3 x x

    Output

    Class 1 Person 1, Person 2, Person 3
    Class 2 Person 2
    Class 3 Person 1, Person 2

  67. Sukhbir Singh says:

    I was wondering if there is a way to concatenate based on if function.
    Please see below.
    Thank,

    Input
    --------|Class 1|Class 2|Class 3
    Person 1-|---x---|-------| ---x---|
    Person 2-|---x---|---x---| -------|
    Person 3-|---x---|-------| ---x---|

    Output

    Class 1 Person 1, Person 2, Person 3
    Class 2 Person 2
    Class 3 Person 1, Person 2

  68. Jim Noriega says:

    Is there a way to grab the first initial of the word in column A and concatenate it with the contents of column B?
    Column A Column B Column C
    Jim Noriega JNoriega
    John Doe JDoe

  69. KBS says:

    I have a list of employee IDs with corresponding data, some employees have multiple rows of information. I'm trying to create a single row for each employee by moving the 2nd & 3rd lines of information onto a single line. Some employees have just one line, others 2 and some 3. Can a do an if statement to see if cell row below = cell row above & then concatenate? What happens to empty cells in the selection of cells?

  70. Arif says:

    Dear All, I have a query related to mix of concatenate and lookup, so please see below my requirement and help for the same.

    Column A Column B Price Find_Price
    330 05 0.50 33005
    340 05,08,09 0.25 34008
    320 03,04,08 0.98 32004
    232 01,02,05,06,07,03,04,08,09 0.58 34009
    343 06,01 0.45 23207

  71. Arif says:

    Column A
    330
    340
    320
    232
    343

    Column B
    05
    05,08,09
    03,04,08
    01,02,05,06,07,03,04,08,09
    06,01 0.45 23207

    Price
    0.50
    0.25
    0.98
    0.58
    0.45

    Find_Price (After concatenation of column A & B)
    33005
    34008
    32004
    34009
    23207

  72. JALDEEP says:

    I am trying to join text with number cell with CONCATENATE. Now number cell is formatted as if minus its in Red and if plus its written in blue. is it possible to reflect the same formatting with CONCATENATE?

  73. Manikandan says:

    How to concatenate ROW and COLUMN values?

  74. Yasir Ali says:

    Hi Everyone,
    I Do Make sale sheets for my company in excel, In A1 I put a company Name and and B1 i put the representative from our marketing team, like wise i already made a sheet with thousand companies and representative,i want that when i write a compan name while making sales sheet so the representative name auto fill in cell by the date above which i made,

    can any one help me out for this.

  75. Raymond Wachaga Mwaura says:

    This is a really useful article. It allowed me to build my own simple binary converter in Excel. Thanks!

  76. haribabu says:

    hello all,
    I have a situation need your advise on how to get my intended result in excel.
    In sheet1--> column C --> row 10, I have a sentence / description referring to a sum of quantity (say 250MT) which is a sum of various units in sheet2 (say sum of 10 containers detailed with various other information).
    the question is how to merge the cell of sum in sheet2 In sheet1--> column C --> row 10.
    Appreciate your advise by email.
    thank you

  77. Steve says:

    Hey,

    I am using the concatenate command to put a group of things together. One of the numbers is a sum of a bunch of numbers from another page and when not formatted it has a number of digits after the decimal point (17.9476930697) In the original cell I have it formatted to only show 2 digits after the decimal point but when I run the command the formatting resets and shows every number after the digit point.

    I have multiple cells and multiple lines so just "hard inputting" the number isn't much of an option and its a document that could undergo revisions.

    Is there anyway to format numbers within a concatenate command?

    Cheers,

    • Luke says:

      The ROUND function can be used to change the number of decimal places being shown when you are concatenating - e.g. text in cell A1, number with 9 decimal places in B1. The following will reduce to the number part to 2 decimal places:

      =CONCATENATE(A1,ROUND(B1,2))

  78. Miguel says:

    CORRECTION

    Hello All,
    I spent great deal of time trying to solve my case by searching on the web
    for the correct Excel formula, but unfortunately I'm still looking for it.
    I saw a lot of samples, videos, tutorial…still not yet found what I’m
    looking for. I’m must confess, I’m new in this and it’s quite hard to
    find the correct formula for the following problem (pretty tricky):
    I have an article with Id# 300045 and this article has 5 pictures – 300045,
    300045k, 300045ak, 300045bk.
    I want to retrieve all 5 pictures to this specific Id 300045 as follows:

    COL A COL B COL C COL D COL E
    300045 300045 300045k 300045ak 300045bk
    300045k 990099 990099k 990099bk
    300045ak 915501 915501k
    300045bk 915502
    300045ck 930045 930045ak 930045kk
    990099
    990099k
    990099bk
    915501
    915501k
    915502
    930045
    930045k
    930045ak
    930045kk

    Any ideas?

    Thank you for your help.
    Best regards,
    Miguel

  79. jad says:

    hello all;

    i want to concatenate cells from sheet 1 according to certain criteria
    and i successfully did. But the problem i face now, if i insert new line between existing lines in the sheet 1 the function will skip the new line.
    any idea how to make it on all lines?

    Thank you
    Regards

  80. Amjad says:

    Dears hi,

    i have date in format dd,mmm,yyyy

    date is

    16-01-2017
    17-01-2017

    But want as in text format like

    '16-01-2017
    '17-01-2017

    any one can help with this

    thank you

  81. Iqbal Singh says:

    Hi All,

    I have formula =(C21-D21)/C21.
    I want to change C and D in the formula based on some other cell value like.
    Ex: cell H20 and I20 , if i enter A in H20 and B in I20 then formula should become =(A21-B21)/A21. 21 is dynamic(Range is 21 to 678 in table)

    Thanks in Advance

  82. Ashfaq says:

    Hi All,

    It would be great help if you can suggest me best formula for below report.

    [My Data is like....]

    Name Visited Planned Date
    ------ ------- ------------
    Red Yes 07/10/2016
    Blue Yes 09/10/2016
    Red Yes 10/10/2016
    Green Yes 11/10/2016
    Green No 12/10/2016
    Red No 13/10/2016
    Blue Yes 14/10/2016

    [I need report like below....]
    Name Visit Dates
    ------ ------------
    Red 07/10/2016; 10/10/2016
    Blue 09/10/2016; 14/10/2016
    Green 11/10/2016

    Please suggest best formula to create report. Data will be added regularly in my data tracker. And report will be updated automatically.

    Please help. Thanks in advance.

  83. mehboob ali says:

    name S/O, D/O
    saira ali khan
    mehboob ali ghulam ali

    how i use formula concatenate here ? please help

  84. Razvan Glavan says:

    Hi,

    A B
    1 BMW 2010
    2 2001 4.6L
    3 2002 1999
    4 2003 Honda
    5 Chevy 1978
    6 3.5L 602384
    7 128435 2008

    I want to keep just the data that looks like an YEAR from the 2 columns(A,B).

    I tried to write a function that looks at A1 and see if it's a number with the character limit lower than 5, and if YES, to bring over the cell, if NOT to leave a blank space.

    =if(ISNUMBER(LEN(A1)<5), A1, " ")

    I tried something more complicated like this.

    =if(ISNUMBER(LEN(A1)<5), A1, if(ISNUMBER(LEN(B1)<5), B1," "))

    I wanted to look at A1 to see if it's a number with length<5, and if yes to bring over the cell, if NOT to look at B1 if it's number with length<5 and bring it over, and if NOT to leave a blank space.
    Still didn't work.

    I've tried this way as well using the & in the argument.

    =if(ISNUMBER(A1)&LEN(A1)<5, A1, " ") or

    =if(ISNUMBER(A1)&LEN(A1)<5, A1, if(ISNUMBER(B1)&LEN(B1)<5, B1, " "))

    Still NO luck.

    What am I doing wrong? :(((

    Thank you in advance for any tip :D

  85. Dilip Dighe says:

    Hi,
    the value are 4.89 &
    this value in separate (not decimal place) Ans : = 4.00
    how to use formula in this value..

    thanx..

  86. Chahal says:

    Hi,
    I have data in 2 column, same values repeated in both column need unique concatenate value for combination ex-
    ColumnA ColumnB
    A B =CONCATENATE(A2,"_",B2)
    B A
    C D
    D C
    Required unique concatenate A_B(for B_A also)
    Result should
    A_B
    A_B
    C_D
    C_D

    Pease help for given concatenate and vlookup formula
    Thanks

  87. vikas says:

    I want to perform set theory operation like A union B and A intersection B operation on two cells containing comma separated numerical values in two cells without repeating the values.

    Kindly help me

  88. Rav says:

    Hi,
    I have 3 columns, each column have a text. But there are cells which does not have any text and when I concatenate it leave two spaces. Please help how this can be sorted.
    Thanks.
    For example.
    how are you how are you
    how you how you

  89. Alma says:

    I have two columns with dates. Most times each column has data but some do not. I want to concatenate the two date columns into a single column. Here is what I am using: =TEXT(D2, "m/d")&" - "&TEXT(E2, "m/d"). This is working perfectly except when one of the columns is blank I get this result: 10/31 - 1/0. I want the formula to return just the single date when one column cell is blank. Help?

  90. Micah says:

    How can I concatenate two dates?

    Column A: 3/1/17
    Column B: 3/5/17

    What I want for Column C: 3/1/17 - 3/5/17

    Is there a formula for this? I seem to only be able to find formulae for text and not dates.

  91. Ankit says:

    How to connect text string for varing range given below
    Input:
    ST1 Cataract
    ST2 Macular degeneration
    AMD
    ARMD
    ST3 Diabetic retinopathy
    nonproliferative retinopathy
    diabetic eye disease
    leaking blood vessels
    ST4 vitreous hemorrhage
    extravasation of blood
    leakage of blood
    ST5 Macular hole
    macular break

    Output:
    ST1 Cataract
    ST2 Macular degeneration OR AMD OR ARMD
    ST3 Diabetic retinopathy OR nonproliferative retinopathy OR diabetic eye disease OR leaking blood vessels
    .....
    Since range is not fixed for each output how to use CONCATENATE or any other function

  92. ARUN says:

    Hi,
    After concatenation I want any part (any one of the cells to be concatenated) of the result as BOLD ITALIC. How to do it with VB and without VB?
    Thanks.

  93. Preston says:

    Hi Svetlana,

    Great website. Is there vba formula that could help sort my text strings like this:

    House1
    House2
    House3
    Truck1
    Truck2
    Truck3

    Result

    House1|House2|House3
    Truck1|Truck2|Truck3

    Thank you.

    • Hello, Preston,

      we don't build VBA formulas, but we can provide another option which you may find useful.
      If your data starts in A1, enter the next formula in B1:
      =INDIRECT(ADDRESS(ROW()*3-2,1))&" | "&INDIRECT(ADDRESS(ROW()*3-1,1))&" | "&INDIRECT(ADDRESS(ROW()*3,1))
      This will return House1|House2|House3
      and copy the formula to the row(s) below (read how do to it here) to apply for other group(s) of the data.
      Hope it helps!

  94. sree says:

    how to add a space between word and number (Ex:ACT222) In a single cell.
    Thank You.

    • Luke says:

      If the text and numbers are always in blocks of 3 and 3 (e.g. ACT222, BOB876 etc.) then (assuming data is in cell A1):

      =CONCATENATE((MID(A1,1,3))," ",MID(A1,4,3))

  95. abc says:

    Sub Code()
    ' Range("C17").Select
    ' Selection.Copy
    ' Sheets("Sheet2").Select
    ' Range("B10").Select
    ' ActiveSheet.Paste

    For x = 2 To 24
    con = ""
    Sheets("BB").Select
    state1 = Cells(x, 9).Value
    district1 = Cells(x, 10).Value
    village1 = Cells(x, 12).Value
    Sheets("AA").Select
    For y = 2 To 60
    state2 = Cells(y, 10).Value
    district2 = Cells(y, 11).Value
    village2 = Cells(y, 13).Value
    If state2 = state1 And district2 = district1 And village2 = village1 Then
    con = Cells(y, 15).Value = Cells(y, 15).Value + ("y14", " , ","x15")
    'Sheets("BB").Select
    Cells(x, 16).Value = Cells(x, 16).Value + ", "

    End If
    Next
    Next
    End Sub

    y there is an error in concentation
    thank u

  96. sree says:

    Can u Please help me??

    How can we find Price(numbers) from letters?
    eg.A B C D
    a 1 ab 12
    b 2
    c 3 bc 23

    In column D i want the values of merged letters

  97. sree says:

    Can u Please help me??

    How can we find Price(numbers) from letters?
    eg.A B C D
    a 1 ab 12
    b 2
    c 3 bc 23
    .....................
    In column D i want the values of merged letters...
    please help me

  98. ASHRAF says:

    hi am trying use double code text file to be upload.

    pls refer.below sample format.
    "IH","INV-3456","2007-11-20","1","1","TESTING","2","1","AED","1000","CIF","","","",""
    "ID","1234","03056980","NormalHSCode","N","kg","1","kg","1000","m","","1000","US","123456789012345","1","12352","","","11"

    please help

  99. Jess says:

    Hello,

    If there a way to Concatenate and use Right at the same time?

    Ex: 123456 to ***456

    Doing so with on one column, ID number is 123456 then ID number 2 would be ***456

    Thank You

  100. Venkatesh R Rao says:

    When i concatenate =1&2&3&4&5 it gives 12345
    In my program i want to remove any one of the items, say 4
    and it should show 1235.
    Can any one guide me how to do it?
    Thank you

  101. 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.

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

    Thanks for your help!

    • Hello, Mark,
      the ASCII code for single quotes ('') is CHAR(39). Assuming that the numbers are in A1:C1, to get the desirable result, try the following formula:

      =CONCATENATE(CHAR(39), A1 & CHAR(39),",",B1,",",C1)

      Just add the references to the cells with the text to this formula and you're good to go :)

  102. 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??

  103. Abhinav says:

    Hi

    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: https://youtu.be/ZWiPQINKvW8

    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!

    Regards,
    Abhinav

  104. 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: https://youtu.be/ZWiPQINKvW8

    Column 2: ()

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

    Hope it gets posted this time.

    Thanks!
    Abhinav

  105. Abhinav says:

    Hi Svetlana,

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

    https://ibb.co/jqf3Ha

    I hope it helps!

    Thanks in advance.

    Regards,
    Abhinav

    • 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

  106. 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,
    Abhinav

  107. 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

  108. 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

  109. Chester says:

    Hello,

    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:

      =CONCATENATE(A1,DOLLAR(B1,2))

  110. 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.

  111. 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?

    Keith

  112. Celestine says:

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

  113. sonaikumar says:

    hi, i am sonai.i have one question please answer it.
    the format of the EXCELL is,
    ADDRESS1 ADDRESS2 ADDRESS3 ADDRESS4 CITY STATE PINCODE
    so, split the address to this format,
    the source data is
    oldno54,newno4355,eaststreet,virudhunagar,mutharpatti,greengarden,chennai,tn,tamilnadu,600018
    please, solve the problem.it's my humble request youto.immediately

  114. sonaikumar says:

    sry, i missing something
    actually the SOURCE DATA IS
    oldno54,newno4355,eaststreet,virudhunagar,mutharpatti,sattur,greengarden,chennai,tn,tamilnadu,600018

    and the excel format is,

    ADDRESS1 ADDRESS2 ADDRESS3
    oldno54,newno4355 eaststreet,virudhunagar mutharppati,sattur

    ADDRESS4 CITY STATE PINCODE
    greengarden,chennai tn tamilnadu 600018

    so please help me,solve this problem immediately.

Post a comment



Unfortunately, due to the volume of comments received we cannot guarantee that we will be able to give you a timely response. When posting a question, please be very clear and concise. We thank you for understanding!
Excel add-ins and Outlook tools - Ablebits.com
Ultimate Suite for Excel Professionals
 
 
50+ professional tools for Excel 2016-2007 to do your daily work
Incredible product, even better tech support…AbleBits totally delivers!
Deborah Bryant
Anyone who works with Excel is sure to find their work made easier
Jackie Lee
The best spent money on software I've ever spent!
Patrick Raugh
Ablebits is a fantastic product - easy to use and so efficient.
Debra Celmer
Excel is at its best now
Annie C.
I don't know how to thank you enough for your Excel add-ins
Jennifer Morningstar
Anybody who experiences it, is bound to love it!
Kumar Nepa
AbleBits suite has really helped me when I was in a crunch!
Nelda Fink
I have enjoyed every bit of it and time am using it
Christian Onyekachi Nwosu
It's the best $100 we've ever spent!
Mike Cavanagh
I love the program, and I can't imagine using Excel without it!
Robert Madsen
One word… WOW!
Dave Brown
Love the products!
David Johnston
It is like having an expert at my shoulder helping me…
Linda Shakespeare
Your software really helps make my job easier
Jeannie C.
Thanks for a terrific product that is worth every single cent!
Dianne Young
I love your product
Brad Gibson
Awesome!!!
Sheila Blanchard