Home » excel » excel – How to add ' before and after number

excel – How to add ' before and after number

Posted by: admin May 14, 2020 Leave a comment

Questions:

I am new to Excel I have a around 3000 purchase numbers and I need add ' before and after the numbers, and I need a , after each row’s closing '.

Eg:

'18-0000319-000',
'44-000000123-000',
'55-00000456-010',

Don’t know how to do in Excel please help me on this.

Thanks in Advance

How to&Answers:

Assuming you have data in C3, here is the formula that will do the trick:

="'"&C3&"',"

and you may then drag it down.

enter image description here

Answer:

One of two/three (depending on version) ways to achieve this. Assuming your purchase numbers are in A2 down:

="'"&A2&"',"

=CONCAT("'",A2,"',") Newer versions of Excel uses this as well

=CONCATENATE("'",A2,"',") This is the older version of excel’s Concatenate formula