#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:
BULKLEY SOCIETY71460BULKLEY SOCIETY-71460
VALLEY BACKPACKERS INC71461VALLEY BACKPACKERS INC-71461
CAMP MORICE SOCIETY71TJA#VALUE !
CAMPBELL RIVER SALMON FESTIVAL SOCIETY7183A#VALUE !

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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