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. Continue reading
Comments page 2. Total comments: 264
Can I use concatenate to to form a reference to a defined name?
I have defined names that reference cells containing physical part subtotals in sheet WIP for each part and location combination.
PARTALOC1
PARTALOC2
PARTBLOC1
PARTBLOC2
In sheet data I have rows with PARTx in one column and LOCx in another column. Each time I run a report the data sheet may contain a different set of combinations and appear in different orders.
I can set a cell to the right of my data that will not be overwritten to concatenate and form the defined name, I can even get as for as "=partaloc1" to appear in the cell, but how do I get it to reference the name partaloc1? From what I have found about indirect it deals only with cell references, sheet names etc, but not names.
Hello!
If I understood the problem correctly, you can use the INDIRECT function.
=INDIRECT(E1)
Cell E1 contains the name as text.
In the cell you will get a link to the name.
Is there a formula for example This information together ?
For example:
Column 1- Neil
Column 2- 30295699
The result I require is NE5699 in Column 3
Not sure if this is even possible
Hi Keelan,
Assuming Neil is in A2, and 30295699 is in B2, enter one of the below formulas in C2:
=UPPER(LEFT(A2,2))&(RIGHT(B2,4))
Or
=CONCATENATE(UPPER(LEFT(A2,2)), (RIGHT(B2,4)))
How does the formula look like when I want to concatenate, say for example :JOHN FITZGERALD KENNEDY
and I want the result as "JOHN F KENNEDY" only?
Hi!
Use the LEFT function
=CONCATENATE(A2," ",LEFT(B2,1)," ",C2)
or
=TEXTJOIN(" ",TRUE,A2,LEFT(B2,1),C2)
Hope this is what you need.
I am trying to make a list where name is
John Doe email will follow jdoe@school. org
any ideas? I was able to create the password jd123456
using the formula ==CONCATENATE(LEFT(C13,2),"123456") but I ma not able to find the format
Try the following formula:
=(LOWER(CONCATENATE(LEFT(F8),(G8),"@school.org")))
F8 is First Name, G8 is Last Name.
Changed to Lower Case.
Hi,
I would like to create a table with the day sequence of a month, as ...
01/02/2021
02/02/2021
03/02/2021
but it will be a concat result of ="01/"&G$2&"/2021" for the first line, for example, where G$2 will have the number of the month I want, in this case, fev 02.
The problem is that I need the result of the concat in data format, which is not happening.
I hope it sufficiently clear to understand.
Thanks in advance.
Hello!
Enter a date in the cell. After that, you can copy this data down along the column. You will receive a sequence of days.
Or use the formula
=DATEVALUE("1/"&G2&"/2021")
I hope it’ll be helpful.
Hello : 0001 code when i use for concatination formula its shows only as 1, How to show as 0001
Hello!
Use TEXT function:
TEXT(A1)
Hope this is what you need.
The example here says to click each cell for Concatenating the cells. However, I have around 6000 records in individual cells that I need to concatenate with a semicolon. May I know the command for the same.
Example:
Car 1
Car 2
.
.
Car 5999
Car 6000
Output: Car1; Car 2; . . . Car 5999; Car 6000
Thanks in advance.
Hi!
Please have a look at this article: TEXTJOIN function in Excel to merge text from multiple cells.
OMG, after trying for an hour to get CONCATENATE to work, I realized that you need to use a semicolon instead of a comma to separate the arguments!
It seems that all guides on this function are wrong in that regard.
Hello!
Our examples use the US regional settings. A comma is used as a separator. You are using a European settings that uses a semicolon. These regional settings are set in the Windows control panel.
Hello,
I am having trouble creating the correct CONC formula for this information. Could you please advise?
Cell Cell Data
B2 C
B3 01
B4 Data Validation- List (only want to include the first character)
B5 Data Validation-List (only want to include the first character)
B6 Data Validation- List (only want to include the first 2 characters)
B7 234
B8 Data Validation-List (only want to include the first character)
B9 21
B11 Formula that will combine cells B2-B9 in order
Thanks,
Daniela
Hello!
I am assuming CONC is CONCATENATE.
Try the following formula:
=CONCATENATE(B2,B3,LEFT(B4,1),LEFT(B5,1),LEFT(B6,1),B7,LEFT(B8,1),B9)
I hope this will help
Hi,
If am using Concatenation then what will be the formula when I have go drag the same for number of rows and columns at time???
Ex. If I have to drag same formula for rows I'll add $ for column number and wise versa.
Them what about doing both draging at a time???
Thanks
Hello!
Please check out the following article on our blog, it’ll be sure to help you with your task: How to copy formula in Excel with or without changing references
I hope it’ll be helpful.
can you help simple formula like number 12345678879093879, to be =12+34+56+78+87+90+93+87+9 (546) and add "+" every 2 number after but later result sum that all number?
Hello!
You can only convert text to a formula using a VBA macro. You can split these numbers by cells and then find their sum.
Is this how I can replace text in Column B with text in Column A?
For example, Column A has R210#P and Column B has INSERT:IMG_PREMIUM_R210#K_ARTISTLASTNAME.
I want to replace the R210#K in Column B with the R210#P in Column A.
Hello!
If the value R210#P is written in cell B1, then it cannot be changed using an Excel formula. This can only be done with the VBA macro. A cell can contain either a value or a formula. The formula cannot change the value of another cell.
i need to know after 5 digit how put -ve sign 921023E550 ( example 92102-3E550 )
please inform us the formula
Hello!
If I understand your task correctly, the following formula should work for you:
=LEFT(F1,5)&"-"&RIGHT(F1,LEN(F1)-5)
Hope this is what you need.
I am trying to concatenate two separate data sets where all the data in A get's repeated for each cell in B. Is there a way to concatenate this without manually changing the $ for each cell in the concatenate function?
example:
Origin Zone Destination Zones
BTD-TGD 32218
NOD-BBK 90670
NOD-BBK-BTD 90749
The result I am looking for is:
BTD-TGD_32218
NOD-BBK_32218
NOD-BBK-BTD_32218
BTD-TGD_90670
NOD-BBK_90670
NOD-BBK-BTD_90670
And so on. Currently the only way I know to do this is =CONCATENATE(A1,"_"b$2) and then change to (...b$3) when all of the data for b2 has been completed.
Hello!
We have a tool that can solve your task in a couple of clicks: Ablebits Tools- Create Cards.
If your data is written in 3 columns -
aaa bbb ccc
123 123 123
456 456 456
789 789 789
and set Number of columns to 1 and "Add header"б
then we get the result -
aaa 123
bbb 123
ccc 123
aaa 456
bbb 456
ccc 456
aaa 789
bbb 789
ccc 789
This tool is available as a part of our Ultimate Suite for Excel that you can install in a trial mode and use for free: https://www.ablebits.com/files/get.php?addin=xl-suite&f=free-trial
If you have any (other) questions, don't hesitate to ask.
Need help...
What if i want to concatenate in excel then i also want to add a open expression
Column A = 2+1
Column B = Roses
Column C = Concatenate(A&" "&B)
Result currently as 2+1 Roses but what i need to know is how can i covert it automatically to 3 Roses
Thanks in advance
Hello!
Cell A1 now contains the text "2 + 1". If you change it to the formula = 2 + 1, then you will get the desired result.
Hello Alexander,
I have a number of cells to concatenate in order to generate an unique identifier for each line item.
The cells contain, for example - A2: 200729, B2: SNK, C2: 34543
My formula reads: =concatenate(right(A2,3),"-",B2,"-",left(C2,2)) producing 729-SNK-34
In cell A2, I would like to use the second digit "0" at the beginning of the unique identifier, so need to skip the first digit in cell A2 and use the second, while the rest of the formula stays the same....so the result should then read 0729-SNK-34. Is that possible please...and thank you!
Hello!
If I understand your task correctly, the following formula should work for you:
=CONCATENATE(REPLACE(A2,1,2,""),"-",B2,"-",LEFT(C2,2))
I hope this will help
Is there a way to exclude two specific characters whenever they appear in the cells that you are combining? Either using CONCATENATE or any other function. For example:
A2 thru A5 all have the same data: AA .
B2 thru B5 have: T-14 T-14+ T-14= T-14++= in which the hyphen, plus sign, and equals sign are not actually mathematical, but rather are part of the "model number" (no idea why). That is, they are just textual, not math.
C2 thru C5 have the data: 22 33 44 55.
I need to place the letter X then Cell A then Cell B then Cell C together, eliminating any plus signs or equals (remember, they are not mathematical). The hyphens can stay.
I tried this: =("X"&A5&(SUBSTITUTE(B5,"+",""))&C5)
It of course doesn't eliminate the "=" symbol. I get the result I want for Rows 2 and 3, for example XAAT-1422, XAAT-1433. And not the result that I want for Rows 4 and 5, which return these results: XAAT-14=44, XAAT-14=55.
And vice versa if I use =("X"&A5&(SUBSTITUTE(B5,"=",""))&C5)
I get my desired result for Rows 2 and 4 (XAAT-1422, XAAT-1444) but not for rows 3 and 5, which return XAAT-14+33 and XAAT-14++55.
So I want to be able to eliminate all + symbols and = symbols. I know this scenario is odd to use these symbols, and not mathematically, but the manufacturer uses them in model naming. Thank you for any help! I had started with a concatenate function but couldn't get it to work for me either.
Hello Jillian!
If I understand your task correctly, the following formula should work for you:
="X"&A2&SUBSTITUTE(SUBSTITUTE(B2,"=",""),"+","")&C2
or
=CONCATENATE("X",A3,SUBSTITUTE(SUBSTITUTE(B3,"=",""),"+",""),C3)
I hope it’ll be helpful.
Clarification as the spacing above makes it hard to read what I intended:
B2 thru B5 have:
T-14
T-14+
T-14=
T-14++=
in which the hyphen, plus sign, and equals sign are not actually mathematical, but rather are part of the "model number" ..
Hello!
I have a sales record covering 3 years and i want to report on the highest sales made per year. Can i nest the (=Max) function into a (=Concat) one?
So that it reads "Gross sales for 2018 were highest at $35000"
Hello!
Of course you can use something like this
=CONCAT("Gross sales for 2018 were highest at $",MAX(C1:C18))
Function arguments can be text, numbers, cell references, other Excel functions
How to insert a character in the middle of string/number?
eg: 12345 -> 123-45
Hello!
If I understand your task correctly, the following formula should work for you:
=CONCATENATE(LEFT(B12,ROUND(LEN(B12)/2,0)),"-", RIGHT(B12,LEN(B12)-ROUND(LEN(B12)/2,0)))
Hope this is what you need.
I would like to create a password generator, using a list of words. Then be able to grab 4 random words.
I can create a number with RANDBETWEEN, but how do I convert that to a cell to CONCATENATE?
Hello Tom!
If RANDBETWEEN selects numbers, for example, from 1 to 10, then each number can correspond to a word using the CHOOSE function. If you describe in more detail your task, initial data and the desired result, I can give more detailed advice.
I think I solved my own question, this may not be the most elegant, but it worked.
I have a list of words, numbers, and symbols in column I. 1 to 8000
I want 4 random words combined together from the list of 8000
Created four cells with =RANDBETWEEN(1,8000) let us assume the 4 cells created are L1, M1,N1, and O1
in cell P1 I have =CONCATENATE("I",L1)
in cell Q1 I have =CONCATENATE("I",M1)
in cell R1 I have =CONCATENATE("I",N1)
and in cell S1 I have =CONCATENATE("I",O1)
Then in T1 I have
=CONCATENATE((INDIRECT(P1)),"-",(INDIRECT(P1)),"-",(INDIRECT(Q1),"-",(INDIRECT(S1)))
This returns word-made-up-password (of course the words in those cell in column I are different.
Is there a better way?
Correction:
=CONCATENATE((INDIRECT(P1)),"-",(INDIRECT(Q1)),"-",(INDIRECT(R1),"-",(INDIRECT(S1)))
I am trying to get the cell to read:
Assessed: 18%
Current Formula
="Assessed: "&('C&BE'!E29/'C&BE'!E24)
I want the text 'Assessed: ' and then I want to have the number 18% which comes from a different tab where 2 items are divided. This is what I get 'Assessed: 0.181818181818182' All I want to do is get this number to be a percentage but I can't seem to convert it to percentage. Using the 'Number Format' or 'Display Percentage' items don't convert it. Format Cell doesn't work. It's almost like the '&' function seems to negate these properties. [I have Mac 2011 version 14.7.7 (170905)
I'm looking for the exact same function. Have you found a solution?
Hello!
The formula below will do the trick for you:
=E24&" "&TEXT(E29,"###%")
or
=CONCATENATE(E24," ",TEXT(E29,"###%"))
Hope this is what you need.
Is there a way to concatenate an array (obtained as a result of a formula in a cell)?
Hello!
The CONCATENATE function and the & operator cannot combine a range of cells. Therefore, it is impossible to write a formula. You can use VBA or our ready-made solution.
I'd recommend you to have a look at our Ablebits Data - Merge Cells.
This tool is available as a part of our Ultimate Suite for Excel that you can install in a trial mode and use for 30 days for free: https://www.ablebits.com/files/get.php?addin=xl-suite&f=free-trial
I want to know how to store alternate values in one cell. I am doing some soccer related collation using microsoft excel. For instance cell A1 is barcelona and cell B1 is juventus. I want cell C1 to represent barcelona OR juventus, I don't want cell C1 to represent barcelona AND juventus
Hello!
I recommend that you study the article on our blog about IF function with several conditions.
Hi Is there any way to concat General non-text fields and output the result as a numeric? eg:
Order Version Output as a number
1234 1 12341
1234 2 12342
Thanks
Hello Gary!
If I understand your task correctly, please try the following formula:
=VALUE(A1&B1)
I hope this will help, otherwise please do not hesitate to contact me anytime.
How can I concatenate values from two cells in to one cell, but skip few letters from one of the cell. For example.
Cell A1 has - Mr Joe
Cell B1 has - Smith
Cell C1 should print "Joe Smith" skipping "Mr" from Cell A1 values.
Hello Matt!
The number of characters to skip is unknown. It can be from 0 to 4. Therefore, it is impossible to write a formula. You can use VBA or our ready-made solution.
I'd recommend you to have a look at our Ablebits Tools - Split Names.
This tool is available as a part of our Ultimate Suite for Excel that you can install in a trial mode and use for 30 days for free: https://www.ablebits.com/files/get.php?addin=xl-suite&f=free-trial
Suppose I have a file with columns A1:C3.
Column A (A1:A3)= Apple, Banana, Carrot (each word in a separate row)
Column B (B1:B3)= Red, Yellow, Orange (each word in a separate row)
Column C (C1:C3)= Y, N, Y (each word in a separate row)
I'd like to concatenate the words in column A into cell D1 contingent upon the value in the C column is "Y". For example I'd like the formula in D1 to return "Apple, Carrot" because Both A1 (Apple) and A3 (Carrot) have C1 and C3 with a "Y" string. Is there a way to concatenate with an IF statement argument in a separate column from what is being combined? Thanks in advance for your help!
All the best,
Whitney
I would use an extra column, a working scratchpad column, hide it if you don't want it seen. E column where E1 is "IF(C1="Y", A1, "")". In other words, if C is Y, then copy A, otherwise make the cell blank. Then where you want the concatenated string, just "E1&E2&E3" (though I would think A4 is a more logical destination, this is essentially SUMIF but with text). The commas are harder, to not have one on the last. I would do "IF(C1="Y", A1&", ", "")" so all entries end in a comma, then in E4 put the concatenation, then where you WANT the concatenation you put "LEFT(E4, LEN(E4)-2)". That way E4 is your target string but ending with an extra comma and space, so this would remove them.
While you could do something like
=CONCATENATE(IF(A$3="Y";A1;"");" ";IF(B$3="Y";B1;"");" ";IF(C$3="Y";C1;"")),
this would only work for a fixed range and for every column you would have to change the IF. What I would suggest is making an equivalent amount of columns to those you wish to concatenate, and populate them with =IF(A$3="Y";A1;""), and then combine those with concatenate.
Is it possible to convert a concatenated formula to an actual formula?
For example, I have 4 columns with the following:
='TM Receipts',!,P,16
I concatenate those 4 columns to get "='TM Receipts'!P16"
This is still a text string of course and I want to convert it a formula to give me the actual value of cell P16 on the TM Receipts worksheet.
Is there a way to do this?
after you have entered CONCATENATE formula, press.. F2 > F9 > Enter
In other words, you want to then retrieve the contents of this P16... You want the command "INDIRECT". The argument it takes is a cell address you want to get, so in your example "INDIRECT("'TM Receipts'!P16"), useful for when you have to use a formula to construct an address. I use formulas like "INDIRECT("A"&(B1*8)+1)" all the time (where A is filled with identical groups of information taking 8 rows each, B is sequential numbers starting from 0, and I'm looking for the first row of each group. On line 0 this become A1, I get A1. On line 1 it's A9, etc). Be warned, formulas with INDIRECT don't update like other formulas do, so if you insert a row above P so that your data moves down one, INDIRECT doesn't care, it'll still get whatever is now in P16.
I am not having any luck with this but I might be applying it incorrectly. I am trying to return the results in row 25 and a variable column. So in, say, D1 I would enter 'B' and then I'd get the value of B25. Unfortunately, =INDIRECT(D1 & "25") is returning 0 though. I hope that makes sense as I've been working on this for way too long and my brain is fried.
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...
Ex:
| 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?
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
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?
Hello Neli,
Thank you for this good question!
Just replace your concatenate formulas with their values. For this, use Excel's "Paste special - values only" feature. The detailed steps can be found in How to replace formulas with their values in Excel. I've added this tip to the tutorial for others to know.
Dear,
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,
Use the Split to Columns feature in the data tools. Here's an explanation: https://support.office.com/en-us/article/split-a-cell-f1804d0c-e180-4ed0-a2ae-973a0b7c6a23
Im so stumped to what this (below) indicates?
"="&
the formula it is used in is shown below.
=SUMIF(logTable[Date],"="&D16,logTable[Amount])
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.
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!
How can I concatenate a sum of different sheet tab?
Hi Rhona,
Simply, make a reference to another sheet, and then concatenate it like this:
="Sum of Sheet1 "&SUM(Sheet1!A1:A10)
For more information, please see How to refer to another sheet in Excel.
Hello I want to use concatenate function
0000 1 /15-16
I want 00001/15-16
I am not getting
Set Number Format to General.
=CONCATENATE(A1,B1,C1)
Regards,
Taimoor
Also Set Number format for your; 0000 to Text.
Regards,
Taimoor
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
53+21+59+82+65
02+54+33+84+16
86+22+59+34+04
57+03+27+39+54
Just add a + sign at the beginning
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?
Hi Barbara,
In Excel, select the cell with your CONCAT formula, and press Ctrl+C to copy it. Switch to your Word document, place the mouse pointer to where you want the merged text to appear and press Ctrl+V to paste it.
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?
Thanks
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
Hanelise:
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.
hi
i have number of say 100 links in which i need to edit 4 letters
eg: http://www.google.com/node12346 (is source)
http://www.google.com/in-en/node12346 (as result)
how do i do it using concatenate formula
Hi Drishti,
I'd simply use Excel's Replace All feature:
1. Press the Ctrl + H to open the Replace tab of the Find and Replace dialog.
2. Type /node in the "Find what" box.
3. Type /in-en/node in the "Replace with" box.
4. Hit "Replace All".
Done.
How to do?
32
12
32
32
32
92
36
192
96
36
24
32
32
32
100
32
32
384
32
32
to this
32,12,32,32,32,92,36,192,96,36,24,32,32,32,100,32,32,384,32,32
(in one shot without using one by one concatenation) .
Manisha:
I use the Concatenate Transpose method on the infrequent occasions I have done this. I decided to look for other methods to answer your question and came across this excellent article on five different methods to accomplish your task. Take a look at the article and I know you will find a method that best suits your situation.
https://excelchamps.com/blog/concatenate-a-range-of-cells/
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
Paban:
Where the original text is in A1
Enter =UPPER(A1) in an empty cell.
The function has an expanded explaination in the article above.
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.
Elizabeth:
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)
Mr.Doug
Thank you for reply
but i want result is 010155
this result is 1155
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.
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
D1=Concatenate(A1,b1,c1)
COL1 COL2
1 AAA
1 GGG
1 FFF
2 GGG
2 HHH
3 RRR
3 JJJ
concatenate text based on criteria in Excel? FORMULAS
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))
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.
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?
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.
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.
Thanks
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!
To keep the 0's in front of numbers, put a single quotation mark in front of them like this:
'00....
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
Rgds
Ankur
Use the below formula.
=IF(ISBLANK(A2),A1, CONCATENATE(A1,",",A2))
Regards,
Taimoor
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:
=CONCAT(CONCATENATE(A1:A3,","))
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.
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?
Thanks,
Billy
were you able to figure out this?
Never mind, I solved it. Thanks.
How did you solve it? I think I have the same question/problem, but haven't figured it out as of yet! Thanks