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 10. Total comments: 449
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
concatenate =1&2&3&4&5 it gives 12345
then integer =int (12345) above value-11110
your answer will be there.
Just minus 11110
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
Hello, Jess,
if your ID is in A1, then enter the following in B1 to get ***456:
=CONCATENATE("***",RIGHT(A1,3))
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
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
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
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
how to add a space between word and number (Ex:ACT222) In a single cell.
Thank You.
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))
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!
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.
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
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.
Nevermind I found it :)
=CONCATENATE(TEXT(A1,"dd/mm/yyyy")," - ",TEXT(B1,"dd/mm/yyyy"))
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?
=IF(E2="",TEXT(D2, "m/d"),TEXT(D2, "m/d")&" - "&TEXT(E2, "m/d"))
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
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
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
=IF(B2>A2,CONCATENATE(A2,"_",B2),CONCATENATE(B2,"_",A2))
Hi,
the value are 4.89 &
this value in separate (not decimal place) Ans : = 4.00
how to use formula in this value..
thanx..
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
name S/O, D/O
saira ali khan
mehboob ali ghulam ali
how i use formula concatenate here ? please help
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.
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
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
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
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
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,
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))
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
This is a really useful article. It allowed me to build my own simple binary converter in Excel. Thanks!
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.
How to concatenate ROW and COLUMN values?
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?
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
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
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?
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
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
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
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
Re:above
I should have said I only want to concatenate the ID numbers based on the ones who said no.
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
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))
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.
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
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
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!
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?
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 |.
For the second formula I meant in C3 put =CONCATENATE(C2&"|"&B3)
In this case you should reference each cell individually and insert spaces in between, like this:
=CONCATENATE(S33, " ", S34, " ", S35, " ", ..., S94)
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.
Sir,
May I apply concatenate formula for more then 1000 cell.
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)
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.
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.
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
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