2

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

gravity
  • 2,175
  • 2
  • 26
  • 34
Maxtech
  • 111
  • 16

2 Answers2

4

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

Rishi Mehta
  • 399
  • 3
  • 10
1

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

Mark S.
  • 1,474
  • 1
  • 6
  • 20