Concatenate function

d488z

New Member
Joined
Jul 26, 2016
Messages
17
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.

ArtBiologyHistoryArt; Biology; History
ChemREPEChem; RE; PE
ArtREHistoryArt; RE; History

<tbody>
</tbody>
 
Last edited:

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
11,491
Office Version
365, 2010
Platform
Windows, Mobile
What version of excel are you using?
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,280
Office Version
365
Platform
Windows
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
2ArtBiologyHistory
3ChemREPEChem; RE; PEChem; RE; PE
4ArtREHistoryArt; RE; HistoryArt; RE; History
Concat
 

d488z

New Member
Joined
Jul 26, 2016
Messages
17
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.
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
3,823
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
 

d488z

New Member
Joined
Jul 26, 2016
Messages
17
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
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,280
Office Version
365
Platform
Windows
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. :)
 

Forum statistics

Threads
1,082,316
Messages
5,364,491
Members
400,802
Latest member
RichBRich

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top