ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding * to text to column (https://www.excelbanter.com/excel-discussion-misc-queries/213884-adding-%2A-text-column.html)

Jeff

adding * to text to column
 
I have a large column of numbers in the format of 111111-11. All the numbers
are random, but they are always six numbers, dash, then two more numbers.
Occasionally the first number will be the letter 't'. Anyway, I need to add
an * to the beginning and the end to this column. The reason is to convert
these numbers to a bar code with a bar code font, there has to be an * before
and after the text that is being converted to bar code. The idea is simple,
just adding an *, but in practice, I'm having a hard time.

Thanks

Mike H

adding * to text to column
 
Hi,

What about this with your number in a1

="*"&A1&"*"

Mike

"Jeff" wrote:

I have a large column of numbers in the format of 111111-11. All the numbers
are random, but they are always six numbers, dash, then two more numbers.
Occasionally the first number will be the letter 't'. Anyway, I need to add
an * to the beginning and the end to this column. The reason is to convert
these numbers to a bar code with a bar code font, there has to be an * before
and after the text that is being converted to bar code. The idea is simple,
just adding an *, but in practice, I'm having a hard time.

Thanks


Niek Otten

adding * to text to column
 
="*"&A1&"*"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jeff" wrote in message
...
I have a large column of numbers in the format of 111111-11. All the
numbers
are random, but they are always six numbers, dash, then two more numbers.
Occasionally the first number will be the letter 't'. Anyway, I need to
add
an * to the beginning and the end to this column. The reason is to
convert
these numbers to a bar code with a bar code font, there has to be an *
before
and after the text that is being converted to bar code. The idea is
simple,
just adding an *, but in practice, I'm having a hard time.

Thanks



JeremyB

adding * to text to column
 
Is the result you are looking for *111111-11* ?

If so, try this in the cell next to your number...

="*"&<<cell of number&"*"

Copy the cell, select a new cell, then paste special, select values to
remove the formula and replace your result.

"Jeff" wrote:

I have a large column of numbers in the format of 111111-11. All the numbers
are random, but they are always six numbers, dash, then two more numbers.
Occasionally the first number will be the letter 't'. Anyway, I need to add
an * to the beginning and the end to this column. The reason is to convert
these numbers to a bar code with a bar code font, there has to be an * before
and after the text that is being converted to bar code. The idea is simple,
just adding an *, but in practice, I'm having a hard time.

Thanks


JE McGimpsey

adding * to text to column
 
One way:

In an adjacent column (say, "B"), enter

B1: ="*" & A1 & "*"

Copy down.

You can then select column B, copy it, then select column A and choose
Edit/Paste Special/Values.


In article ,
Jeff wrote:

I have a large column of numbers in the format of 111111-11. All the numbers
are random, but they are always six numbers, dash, then two more numbers.
Occasionally the first number will be the letter 't'. Anyway, I need to add
an * to the beginning and the end to this column. The reason is to convert
these numbers to a bar code with a bar code font, there has to be an * before
and after the text that is being converted to bar code. The idea is simple,
just adding an *, but in practice, I'm having a hard time.

Thanks



All times are GMT +1. The time now is 12:47 AM.

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