Apostrophe in Concatenation

lisabell

New Member
Joined
Jul 17, 2005
Messages
1
Hi,
This will probably seem like a very simple query, but I am trying to concatenate 2 columns of excel. One contains dates of birth and the next one contains a single apostrophe. They need to be merged, so that they can be compatible with SQL (the db guy can add them at the front end, but not the back).

So, I write the formula (=H2&I2) in a new column and fill the remainder of the column with the formula and it displays a weird mixture of stuff. Some of the dates are in teh same format, but with no apostrophe, some cells contain a varied mixture of numbers.

Can anyone help me with what I'm doing here please? I would be very grateful.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
if u min u need to add apostrophe at the front,
="'"&H2&I2
first apostrophe in excel means that the succeding characters will be recognized as string...
so, typing
'a gives a..
''a(2 apostrophe's) gives 'a
 
Upvote 0
lisabell said:
Hi,
This will probably seem like a very simple query, but I am trying to concatenate 2 columns of excel. One contains dates of birth and the next one contains a single apostrophe. They need to be merged, so that they can be compatible with SQL (the db guy can add them at the front end, but not the back).

So, I write the formula (=H2&I2) in a new column and fill the remainder of the column with the formula and it displays a weird mixture of stuff. Some of the dates are in teh same format, but with no apostrophe, some cells contain a varied mixture of numbers.

Can anyone help me with what I'm doing here please? I would be very grateful.

=TEXT(H2,"DD/MM/YY")&CHAR(39)
 
Upvote 0

Forum statistics

Threads
1,223,923
Messages
6,175,401
Members
452,640
Latest member
steveridge

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