ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I add (') at the beginning and end of a series of numbers? (https://www.excelbanter.com/excel-discussion-misc-queries/81651-how-do-i-add-beginning-end-series-numbers.html)

Ann

How do I add (') at the beginning and end of a series of numbers?
 
I have a series of 6 digit number that I need to edit to be include (') at
the beginning and end and then place a (,) after each. Is there a quick way
to handle this rather than keying on every line, since there are over 400
lines? EX.
Befo 123456 After should appear: '123456',
I have tried to enter the (') in a cell and then concatenate, however the
(') does not appear in the cell

Jonathan Cooper

How do I add (') at the beginning and end of a series of numbers?
 
use the following helper formula.
=CONCATENATE("'",A1,"',")

to clarify, left parentheses, then a double quote, then a single quote, then
a double quote, then a comma, then A1, then a double quote, then a single
quote, then a comma and lastly a double quote followed by a right parentheses.

"Ann" wrote:

I have a series of 6 digit number that I need to edit to be include (') at
the beginning and end and then place a (,) after each. Is there a quick way
to handle this rather than keying on every line, since there are over 400
lines? EX.
Befo 123456 After should appear: '123456',
I have tried to enter the (') in a cell and then concatenate, however the
(') does not appear in the cell



All times are GMT +1. The time now is 08:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com