Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I need to know how to put an * before and after each value I have in a column. For example, if Column A is 1 to 5, I will paste them in B, and then change them to barcode font. My scanner only reads barcodes that start and end in an * . It is easy to do it for a few by hand, but when there are thousands, there has to be an easy way to do it. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In B1:
="*" & A1 & "*" Copy this down as needed. HTH, Paul "Ben" wrote in message ... Hello, I need to know how to put an * before and after each value I have in a column. For example, if Column A is 1 to 5, I will paste them in B, and then change them to barcode font. My scanner only reads barcodes that start and end in an * . It is easy to do it for a few by hand, but when there are thousands, there has to be an easy way to do it. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Ben
With "thousands" a macro may serve you well to change them in place. Sub Add_Text() Dim cell As Range Dim thisrng As Range On Error GoTo endit Set thisrng = Range(ActiveCell.Address & "," & Selection.Address) _ .SpecialCells(xlCellTypeConstants, xlTextValues) For Each cell In thisrng cell.Value = "*" & cell.Value & "*" Next Exit Sub endit: MsgBox "only formulas in range" End Sub Gord Dibben MS Excel MVP On Thu, 7 Jun 2007 09:09:01 -0700, Ben wrote: Hello, I need to know how to put an * before and after each value I have in a column. For example, if Column A is 1 to 5, I will paste them in B, and then change them to barcode font. My scanner only reads barcodes that start and end in an * . It is easy to do it for a few by hand, but when there are thousands, there has to be an easy way to do it. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting cells | Excel Discussion (Misc queries) | |||
Formatting Cells | Excel Discussion (Misc queries) | |||
Formatting Cells | Excel Discussion (Misc queries) | |||
Conditional Formatting Multiple cells based on 2 cells | Excel Worksheet Functions | |||
Need help formatting cells | Excel Discussion (Misc queries) |