#Value error when concatenating an alpha-numeric cell?

JTru77

New Member
Joined
Aug 9, 2017
Messages
2
I'm trying to concatenate two columns of cells in Excel 2010. One is the name of a supplier, the other is a 5 digit account code. Some of the codes are fully numeric and some are alpha-numeric. I'm using this formula: =CONCATENATE(A2, - B2) in order to get a dash between the two parts. It is working with all the numeric values, but returning a #VALUE error with the alpha numeric values. I can get it to work if I remove the dash/space, but then it's all one word. Any ideas why or how to fix it?

Here is an example:[TABLE="width: 1109"]
<tbody>[TR]
[TD][TABLE="width: 888"]
<tbody>[TR]
[TD]BULKLEY SOCIETY[/TD]
[TD]71460[/TD]
[TD]BULKLEY SOCIETY-71460[/TD]
[/TR]
[TR]
[TD]VALLEY BACKPACKERS INC[/TD]
[TD]71461[/TD]
[TD]VALLEY BACKPACKERS INC-71461[/TD]
[/TR]
[TR]
[TD]CAMP MORICE SOCIETY[/TD]
[TD]71TJA[/TD]
[TD]#VALUE ![/TD]
[/TR]
[TR]
[TD]CAMPBELL RIVER SALMON FESTIVAL SOCIETY[/TD]
[TD]7183A[/TD]
[TD]#VALUE ![/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the Board!

Try:
Code:
=CONCATENATE(A2, "-",B2)
 
Upvote 0
D'oh, I knew it didn't look quite right (haven't used that one in a while!). It worked! Thank you :)
 
Upvote 0
You are welcome!:)

I am a little lazier and would just do it this way:
Code:
=A2 & "-" & B2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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