0
Thanks

A few words of thanks would be greatly appreciated.

# Excel - Using the CONCATENATE function ## Objective

It is in a spreadsheet: Merge several data in a single expression.
These data are placed in various locations (including multiple sheets of the same file), and and you want to group them together to form a group of words or a phrase.

## Procedure

• I have a list of names column A, the corresponding forename in column B and registration number in column C.
• In cell D2, if I put the formula =A2&B2, the following will be displayed "DUPONTAbélard."
• If I correct the formula by typing =A2&" "&B2, the following will be displayed "DUPONT Abélard".
• In cell E2, if I put the formula =A2&B2&C2, the following is displayed "DUPONTAbélard804."
• If I correct the formula by typing =A2&" "&B2&" N° "&C2, the following will be displayed "DUPONT Abélard N° 804".

## Using a function

Instead of using the ampersand & symbol we can make use of the CONCATENATE() function, which gives the same result ...
The four formulas above would be written respectively

• =CONCATENATE(A2,B2)
• =CONCATENATE(A2," ",B2)
• =CONCATENATE(A2,B2,C2)
• =CONCATENATE(A2," ",B2," N° ",C2)

## Further uses

If I add the following the phrase "is registered under the following number" to cell X1 of my spreadsheet and I want to have the following displayed in F2 phrase "DUPONT Abélard is registered under the following number 804", and then repeat the same action in all the cells of column F, I have the choice between the formulas:

• =A2&" "&B2&" is registered under the following number "&C2
• =CONCATENATE(A2," ",B2;" is registered under the following number ",C2)
• =A2&" "&B2&\$X\$1&C2
• =CONCATENER(A2," ",B2,\$X\$1,C2)

And if I set the name "afno" in cell X1,

• =A2&" "&B2&afno&C2
• =CONCATENATE(A2," ",B2,afno,C2)
• these six formulas can be copied down without any worries, Excel will automatically set the references of formulas.

## Types of data used

• The result of the concatenation is in the text format
• The data are first converted into text before being merged.
• So you lose ALL formats specific display: percentage, decimal, date, time, phone,... all numeric values

## Practical uses:

• Group first and last name into a single designation
• Group street, city and zip code in a single address line
• Create a phrase like "the young Abelard is 7 years old."
• Transform a number into string by concatenating with an empty string, for example =A1&"" is equivalent of =TEXT(A1,"Standard").
0
Thanks

A few words of thanks would be greatly appreciated.
{"ft_lang_label":"__label__en","ft_lang_prob":0.81200856,"math_prob":0.89307314,"size":2845,"snap":"2021-43-2021-49","text_gpt3_token_len":770,"char_repetition_ratio":0.13164379,"word_repetition_ratio":0.059917357,"special_character_ratio":0.2748682,"punctuation_ratio":0.11985019,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9828865,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-30T18:50:30Z\",\"WARC-Record-ID\":\"<urn:uuid:e1c937ca-8892-4ddf-aeaf-d915b5af2140>\",\"Content-Length\":\"88947\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:cf001c9e-f02f-4c48-b703-b708b7a9ac02>\",\"WARC-Concurrent-To\":\"<urn:uuid:b8894800-eade-4113-9182-00417137d31f>\",\"WARC-IP-Address\":\"104.80.199.17\",\"WARC-Target-URI\":\"https://ccm.net/faq/26955-excel-using-the-concatenate-function\",\"WARC-Payload-Digest\":\"sha1:ZKJPFBOETIDGZOYSMQDKQHUBFCMKZFTK\",\"WARC-Block-Digest\":\"sha1:MSNHHNTXXO5TP5LVR2RZ2SWBC672CZPN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964359065.88_warc_CC-MAIN-20211130171559-20211130201559-00607.warc.gz\"}"}