Concatenate function

d488z

New Member
Joined
Jul 26, 2016
Messages
19
I am trying to add text using the concatenate function....for example=concatenate(a2,b2,c2) which works fine however if I try this =concatenate(a2:c2) comes back with a hashVALUE error....but......

What I am trying to achieve is to extract data from a report which gives me the subject the student is studying, import into excel.... and then in cell (A2) I could have Art and in the next two cells (B2&C2) it is blank and the fourth cell (D2) could have Biology and the next cell blank (E2)...followed by History (F2)

What I would like to see is Art; Biology; History in one cell.

Any help would be much appreciated.

Thanks in advance.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Art[/TD]
[TD][/TD]
[TD][/TD]
[TD]Biology[/TD]
[TD][/TD]
[TD]History[/TD]
[TD]Art; Biology; History[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Chem[/TD]
[TD]RE[/TD]
[TD][/TD]
[TD]PE[/TD]
[TD][/TD]
[TD]Chem; RE; PE[/TD]
[/TR]
[TR]
[TD]Art[/TD]
[TD][/TD]
[TD]RE[/TD]
[TD][/TD]
[TD][/TD]
[TD]History[/TD]
[TD]Art; RE; History[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If you have the TEXTJOIN function in your version (hence Mark's question) you can use the G2 formula, otherwise try the H2 formula.

Excel Workbook
ABCDEFGH
1
2ArtBiologyHistoryArt; Biology; HistoryArt; Biology; History
3ChemREPEChem; RE; PEChem; RE; PE
4ArtREHistoryArt; RE; HistoryArt; RE; History
Concat
 
Upvote 0
Hello Peter

Thank you for help. I am using Excel 2016. The first formula "Text Join" did the job. Saved me hours of learning new functions. Much appreciated. :) :) and thanks to Mark858 for taking time to reply to me.
 
Upvote 0
btw TEXTJOIN() is for Excel for Office 365 Excel for Office 365 for Mac Excel for the web Excel 2019 Excel 2019 for Mac but not for Excel 2016
 
Upvote 0
Hello Sandy

I have Office 365 at work and office 2011 (Mac) at home. I tried it on my Mac initially when I was trying myself but then tested it at work. :-)

Kind Regards
M Dabbs
 
Upvote 0
Hello Peter

Thank you for help. ... The first formula "Text Join" did the job. Saved me hours of learning new functions. Much appreciated. :) :)
You are welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top