SOLVED
Home

Using CONCAT or TEXTJOIN to add a prefix and suffix to a column of data

%3CLINGO-SUB%20id%3D%22lingo-sub-380275%22%20slang%3D%22en-US%22%3EUsing%20CONCAT%20or%20TEXTJOIN%20to%20add%20a%20prefix%20and%20suffix%20to%20a%20column%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-380275%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20attempting%20to%20add%20a%20prefix%20(Column%20C)%20and%20a%20suffix%20(Column%20E)%20to%20data%20from%20a%20column%20(Column%20D).%20This%20is%20the%20formula%20I've%20been%20playing%20with%20and%20trying%20to%20get%20to%20work%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DC7%3AC12%26amp%3BD7%3AD12%26amp%3B%22-%22%26amp%3BE7%3AE12%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20I%20also%20tried%20%3D(C7%3AC12)%26amp%3B(D7%3AD12)%26amp%3B%22-%22%26amp%3B(E7%3AE12)%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20formula%20is%20giving%20me%20the%20correct%20data%20stream%20in%20the%20first%20cell%20of%20the%20column%20but%20it%20doesn't%20populate%20apply%20the%20formula%20to%20the%20rest%20of%20the%20column.%20See%20attached%20picture.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20there's%20a%20way%20to%20do%20this%2C%20any%20help%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-380275%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-380501%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20CONCAT%20or%20TEXTJOIN%20to%20add%20a%20prefix%20and%20suffix%20to%20a%20column%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-380501%22%20slang%3D%22en-US%22%3EConcatenate%20the%20cells%2C%20rather%20than%20the%20ranges%2C%20like%20this%3A%3CBR%20%2F%3E%3DC7%26amp%3BD7%26amp%3BE7%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-380384%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20CONCAT%20or%20TEXTJOIN%20to%20add%20a%20prefix%20and%20suffix%20to%20a%20column%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-380384%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305545%22%20target%3D%22_blank%22%3E%40Sentri1420%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMaybe%20try%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F95795iDB4E1E6341ABFD6F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22ExampleConcat.jpg%22%20title%3D%22ExampleConcat.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20add%20Prefixes%20with%20custom%20formatting%20as%20well....%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20886px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F95796i937211078CC31DFE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Custom%20Format.jpg%22%20title%3D%22Custom%20Format.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Sentri1420
Occasional Visitor

I am attempting to add a prefix (Column C) and a suffix (Column E) to data from a column (Column D). This is the formula I've been playing with and trying to get to work:

 

=C7:C12&D7:D12&"-"&E7:E12      I also tried =(C7:C12)&(D7:D12)&"-"&(E7:E12) 

 

This formula is giving me the correct data stream in the first cell of the column but it doesn't populate apply the formula to the rest of the column. See attached picture.

 

I know there's a way to do this, any help??

 

 

 

2 Replies
Solution

@Sentri1420 

 

Maybe try this:

 

ExampleConcat.jpg

 

You can add Prefixes with custom formatting as well....

 

Custom Format.jpg

 

 

 

 

 

 

Concatenate the cells, rather than the ranges, like this:
=C7&D7&E7
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies